mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
1e60319be2
Add rpcs3/define_new_memleakdetect.h to save and replace new operator with Visual Studio Memory Leak Detection's operator. Add rpcs3/restore_new.h to restore new operator to a previous saved state.
6 lines
210 B
C
6 lines
210 B
C
//Restore the new operator if previously saved before overriding
|
|
//Allow the use of placement new
|
|
#if defined(MSVC_CRT_MEMLEAK_DETECTION) && defined(_DEBUG) && defined(DBG_NEW)
|
|
#pragma pop_macro("new")
|
|
#endif
|