Move Memchecks support out of debug only builds

It wouldn't impact performance until at least one memcheck is enabled.  Because of this, it can be used in release builds without much impact, the only thing that woudl change is the use of HasAny method instead of preprocessor conditionals.  Since the perforamnce decrease comes right when the first memcheck is added and restored when the last is removed, it basically is all beneficial and works the same way.
This commit is contained in:
aldelaro5
2016-09-09 14:10:48 -04:00
parent 6e488e65e3
commit 09df343247
8 changed files with 33 additions and 60 deletions

View File

@ -316,15 +316,6 @@ void Clear()
memset(m_pEXRAM, 0, EXRAM_SIZE);
}
bool AreMemoryBreakpointsActivated()
{
#ifdef ENABLE_MEM_CHECK
return true;
#else
return false;
#endif
}
static inline u8* GetPointerForRange(u32 address, size_t size)
{
// Make sure we don't have a range spanning 2 separate banks