Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
LeakChecking.h
1 
2 /** Leak tracing with MS Visual studio and Visual Leak Detector
3  malloc/free and new/delete are supported
4  with correct line numbers, call stack etc...
5  This file requires the .h extension (instead of .hh)
6  @author Jan Woetzel 08/2005 */
7 
8 #ifdef WIN32
9 # pragma once
10 #endif
11 
12 #ifndef __LeakChecking_h__
13 #define __LeakChecking_h__
14 
15 #include <bias_config.h>
16 #if defined(BIAS_HAVE_VLD) && defined(BIAS_DEBUG) && !defined(COMPILE_NDEBUG)
17 
18 // global options:
19 # define VLD_AGGREGATE_DUPLICATES
20 
21 //#define VLD_MAX_DATA_DUMP 0
22 # define VLD_MAX_DATA_DUMP 20
23 
24 //# define VLD_START_DISABLED
25 
26 // enable VLD tracing and link against vld* libraries
27 # include <vld.h>
28 
29 // required if you use VLDEnable/VLDDisable
30 # include <vldapi.h>
31 
32 
33 #endif // BIAS_HAVE_VLD && BIAS_DEBUG && !COMPILE_NDEBUG
34 #endif //__LeakChecking_h__
35