From 309d3544ca7ab144fa5c60f1cf83b38f17d070b7 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Oct 2021 00:32:11 +0200 Subject: Streamlined file and guard endings in Foundation and NetEx --- FoundationEx/MemDebug.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FoundationEx/MemDebug.h') diff --git a/FoundationEx/MemDebug.h b/FoundationEx/MemDebug.h index 0bd63da..f8ca60e 100644 --- a/FoundationEx/MemDebug.h +++ b/FoundationEx/MemDebug.h @@ -102,11 +102,11 @@ void* __cdecl operator new(unsigned int s); void __cdecl operator delete(void* p, const char*, int); -#endif _DEBUG +#endif // _DEBUG // +--------------------------------------------------------------------+ -#endif FOUNDATION_USE_MFC +#endif // FOUNDATION_USE_MFC -#endif MemDebug_h +#endif // MemDebug_h -- cgit v1.1 From 5f5aa47b4260d4e688acdd85558baedfc99da752 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 2 Oct 2021 13:41:10 +0200 Subject: Added missing new[] debug overload --- FoundationEx/MemDebug.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'FoundationEx/MemDebug.h') diff --git a/FoundationEx/MemDebug.h b/FoundationEx/MemDebug.h index f8ca60e..bcf217f 100644 --- a/FoundationEx/MemDebug.h +++ b/FoundationEx/MemDebug.h @@ -51,12 +51,16 @@ #ifndef _DEBUG +void* __cdecl operator new[](unsigned int, const char*, int); void* __cdecl operator new(unsigned int s, const char*, int); +void __cdecl operator delete[](void* p, const char*, int); void __cdecl operator delete(void* p, const char*, int); #else +void* __cdecl operator new[](unsigned int, const char*, int); void* __cdecl operator new(unsigned int s, const char*, int); +void __cdecl operator delete[](void* p, const char*, int); void __cdecl operator delete(void* p, const char*, int); #endif @@ -89,17 +93,23 @@ public: #ifndef _DEBUG +void* __cdecl operator new[](unsigned int, const char*, int); void* __cdecl operator new(unsigned int s, const char*, int); +void __cdecl operator delete[](void* p, const char*, int); void __cdecl operator delete(void* p, const char*, int); #else /*_CRTIMP*/ +void* __cdecl operator new[](unsigned int, const char*, int); + void* __cdecl operator new(unsigned int, int, const char*, int); void* __cdecl operator new(unsigned int s, const char* f, int l); void* __cdecl operator new(unsigned int s); +void __cdecl operator delete[](void* p, const char*, int); + void __cdecl operator delete(void* p, const char*, int); #endif // _DEBUG -- cgit v1.1