From 2e43457e9c7f328012f744adb4ac7e96f503b6df Mon Sep 17 00:00:00 2001 From: Yasha Jannoo Date: Tue, 10 Sep 2019 01:08:21 +0100 Subject: Revert "Turn off Minimal Rebuild across the board" This reverts commit f935fb0960b1563d6404d2fec21963b20f498a3b. --- FoundationEx/MemDebug.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'FoundationEx/MemDebug.h') diff --git a/FoundationEx/MemDebug.h b/FoundationEx/MemDebug.h index 39e8dca..14bc0cf 100644 --- a/FoundationEx/MemDebug.h +++ b/FoundationEx/MemDebug.h @@ -51,8 +51,8 @@ #ifndef _DEBUG -void* __cdecl operator new(unsigned int s, const char*, int) { return ::operator new(s); } -void __cdecl operator delete(void* p, const char*, int) { ::operator delete(p); } +inline void* __cdecl operator new(unsigned int s, const char*, int) { return ::operator new(s); } +inline void __cdecl operator delete(void* p, const char*, int) { ::operator delete(p); } #else @@ -89,20 +89,21 @@ public: #ifndef _DEBUG - - -void* __cdecl operator new(unsigned int s, const char*, int) { return ::operator new(s); } -void __cdecl operator delete(void* p, const char*, int) { ::operator delete(p); } +inline void* __cdecl operator new(unsigned int s, const char*, int) { return ::operator new(s); } +inline void __cdecl operator delete(void* p, const char*, int) { ::operator delete(p); } #else /*_CRTIMP*/ void* __cdecl operator new(unsigned int, int, const char*, int); -void* __cdecl operator new(unsigned int s, const char* f, int l); +inline void* __cdecl operator new(unsigned int s, const char* f, int l) + { return ::operator new(s, 1, f, l); } -void* __cdecl operator new(unsigned int s); +inline void* __cdecl operator new(unsigned int s) + { return ::operator new(s, 1, __FILE__, __LINE__); } -void __cdecl operator delete(void* p, const char*, int); +inline void __cdecl operator delete(void* p, const char*, int) + { ::operator delete(p); } #endif _DEBUG -- cgit v1.1