Changes in src/Helpers/MemDebug.hpp [f0f1cc:6d6b54]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Helpers/MemDebug.hpp
rf0f1cc r6d6b54 21 21 * your sourcefiles. 22 22 */ 23 #ifndef NDEBUG 24 #ifndef NO_MEMDEBUG 23 25 24 // Set all flags in a way that makes sense 25 26 // NDEBUG implies NO_MEMDEBUG 27 #ifdef NDEBUG 28 # ifndef NO_MEMDEBUG 29 # define NO_MEMDEBUG 30 # endif 26 #ifndef MEMDEBUG 27 #define MEMDEBUG 31 28 #endif 32 33 // NO_MEMDEBUG and MEMDEBUG are mutually exclusive, but at least one must be set34 #ifdef NO_MEMDEBUG35 # ifdef MEMDEBUG36 # undef MEMDEBUG37 # endif38 #else39 # ifndef MEMDEBUG40 # define MEMDEBUG41 # endif42 #endif43 44 #ifdef MEMDEBUG45 29 46 30 #include <new> … … 49 33 // to be loaded before the define 50 34 #include <string> 51 #include <boost/optional.hpp>52 35 #include <boost/shared_ptr.hpp> 53 36 #include <boost/function.hpp> … … 99 82 #endif 100 83 101 #else 84 #endif 85 #endif 86 87 88 #ifdef NDEBUG 89 #undef MEMDEBUG 90 #endif 91 92 #ifndef MEMDEBUG 102 93 // memory debugging was disabled 103 94 … … 112 103 113 104 #endif 114 115 116 105 #endif /* MEMDEBUG_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.