Made memory management optional

This commit is contained in:
David Anderson
2004-09-07 06:17:50 +00:00
parent 3d0e25a8ef
commit 02d60ded5d
26 changed files with 190 additions and 106 deletions

View File

@ -2687,6 +2687,8 @@ void ValidateMacros_DontCallThis_Smiley()
}
#endif
#ifdef MEMORY_TEST
/************* MEMORY *************/
// undef all defined macros
#undef new
@ -2858,6 +2860,8 @@ void operator delete[](void *reportedAddress)
Mem_Deallocator(g_Mem_CurrentFilename, g_Mem_CurrentLine, g_Mem_CurrentFunc, m_alloc_delete_array, reportedAddress);
}
#endif //MEMORY_TEST
/************* stuff from dlls/util.cpp *************/
// must come here because cbase.h declares it's own operator new