4 // Include the following code at the top of a cpp file to enable
5 // line level memory leak detection on Windows:
7 // // Track memory leaks on Windows to the line that new'd the memory
10 // #define DEBUG_NEW new( _NORMAL_BLOCK, THIS_FILE, __LINE__ )
11 // #define new DEBUG_NEW
13 // static char THIS_FILE[] = __FILE__;
22 #define _CRTDBG_MAP_ALLOC
24 #define DEBUG_NEW new( _NORMAL_BLOCK, THIS_FILE, __LINE__ )
27 void EnableLeakDetection(void);
28 void SetOutputLeaksToFile();