[Box Backup-commit] COMMIT r1668 - box/chris/general/lib/common
boxbackup-dev@fluffy.co.uk
boxbackup-dev@fluffy.co.uk
Thu, 17 May 2007 20:24:58 +0100
Author: chris
Date: 2007-05-17 20:24:57 +0100 (Thu, 17 May 2007)
New Revision: 1668
Modified:
box/chris/general/lib/common/Box.h
box/chris/general/lib/common/MemLeakFinder.h
Log:
Define DEBUG_NEW in the same file whether or not BOX_MEMORY_LEAK_TESTING
is defined, thanks Gary.
Modified: box/chris/general/lib/common/Box.h
===================================================================
--- box/chris/general/lib/common/Box.h 2007-05-15 23:57:03 UTC (rev 1667)
+++ box/chris/general/lib/common/Box.h 2007-05-17 19:24:57 UTC (rev 1668)
@@ -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();
Modified: box/chris/general/lib/common/MemLeakFinder.h
===================================================================
--- box/chris/general/lib/common/MemLeakFinder.h 2007-05-15 23:57:03 UTC (rev 1667)
+++ box/chris/general/lib/common/MemLeakFinder.h 2007-05-17 19:24:57 UTC (rev 1668)
@@ -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>