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:
Arkaran99 2014-09-07 09:49:25 +02:00
parent ec9740e747
commit 1e60319be2
8 changed files with 1834 additions and 1809 deletions

View file

@ -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