diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-07-26 22:01:04 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-07-26 22:01:04 +0000 |
commit | 3e8085ecd57ecf4d7f2c4d7a05dba71e70c9a525 (patch) | |
tree | d717a2dbc3cb692bf096efaac6b2d7a8d680b832 /lib | |
parent | 05eb0d9aef01161294de5622f421531970efd464 (diff) |
Define DEBUG_NEW in the same file whether or not BOX_MEMORY_LEAK_TESTING
is defined, thanks Gary. (refs #3, merges [1668])
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common/Box.h | 1 | ||||
-rw-r--r-- | lib/common/MemLeakFinder.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/common/Box.h b/lib/common/Box.h index 080b56b2..abaad9f2 100644 --- a/lib/common/Box.h +++ b/lib/common/Box.h @@ -95,6 +95,7 @@ #ifdef BOX_MEMORY_LEAK_TESTING // Memory leak testing #include "MemLeakFinder.h" + #define DEBUG_NEW new(__FILE__,__LINE__) #define MEMLEAKFINDER_NOT_A_LEAK(x) memleakfinder_notaleak(x); #define MEMLEAKFINDER_NO_LEAKS MemLeakSuppressionGuard _guard; #define MEMLEAKFINDER_INIT memleakfinder_init(); diff --git a/lib/common/MemLeakFinder.h b/lib/common/MemLeakFinder.h index 6bfdc3d0..450d42f8 100644 --- a/lib/common/MemLeakFinder.h +++ b/lib/common/MemLeakFinder.h @@ -10,8 +10,6 @@ #ifndef MEMLEAKFINDER__H #define MEMLEAKFINDER__H -#define DEBUG_NEW new(__FILE__,__LINE__) - #ifdef MEMLEAKFINDER_FULL_MALLOC_MONITORING // include stdlib now, to avoid problems with having the macros defined already #include <stdlib.h> |