[Box Backup-commit] COMMIT r1332 - box/chris/general/lib/common

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Mar 3 22:09:23 GMT 2007


Author: chris
Date: 2007-03-03 22:09:23 +0000 (Sat, 03 Mar 2007)
New Revision: 1332

Modified:
   box/chris/general/lib/common/Box.h
Log:
Add new MEMLEAKFINDER_INIT and MEMLEAKFINDER_NO_LEAKS convenience
macros (from chris/merge)


Modified: box/chris/general/lib/common/Box.h
===================================================================
--- box/chris/general/lib/common/Box.h	2007-03-03 22:07:34 UTC (rev 1331)
+++ box/chris/general/lib/common/Box.h	2007-03-03 22:09:23 UTC (rev 1332)
@@ -95,16 +95,19 @@
 	// Memory leak testing
 	#include "MemLeakFinder.h"
 	#define MEMLEAKFINDER_NOT_A_LEAK(x)	memleakfinder_notaleak(x);
+	#define MEMLEAKFINDER_NO_LEAKS		MemLeakSuppressionGuard _guard;
+	#define MEMLEAKFINDER_INIT		memleakfinder_init();
 	#define MEMLEAKFINDER_START {memleakfinder_global_enable = true;}
-	#define MEMLEAKFINDER_STOP {memleakfinder_global_enable = false;}
+	#define MEMLEAKFINDER_STOP  {memleakfinder_global_enable = false;}
 #else
 	#define DEBUG_NEW new
 	#define MEMLEAKFINDER_NOT_A_LEAK(x)
+	#define MEMLEAKFINDER_NO_LEAKS
+	#define MEMLEAKFINDER_INIT
 	#define MEMLEAKFINDER_START
 	#define MEMLEAKFINDER_STOP
 #endif
 
-
 #define THROW_EXCEPTION(type, subtype)														\
 	{																						\
 		OPTIONAL_DO_BACKTRACE																\




More information about the Boxbackup-commit mailing list