mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 02:38:37 +12:00
Fix compile errors in Debug - MemLeak.
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.
This commit is contained in:
parent
ec9740e747
commit
1e60319be2
8 changed files with 1834 additions and 1809 deletions
|
@ -10,7 +10,7 @@
|
|||
|
||||
#if defined(MSVC_CRT_MEMLEAK_DETECTION) && defined(_DEBUG) && !defined(DBG_NEW)
|
||||
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
|
||||
#define new DBG_NEW
|
||||
#include "define_new_memleakdetect.h"
|
||||
#endif
|
||||
|
||||
// This header should be frontend-agnostic, so don't assume wx includes everything
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue