Changes in src/Helpers/MemDebug.hpp [992fd7:6d6b54]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Helpers/MemDebug.hpp
r992fd7 r6d6b54 28 28 #endif 29 29 30 #include <cstdlib>31 30 #include <new> 31 32 // some light header files, that do weird new stuff and therefore need 33 // to be loaded before the define 34 #include <string> 35 #include <boost/shared_ptr.hpp> 36 #include <boost/function.hpp> 37 #include <boost/program_options.hpp> 38 32 39 33 40 namespace Memory { … … 53 60 } 54 61 } 55 62 #ifdef __GNUC__ 63 void *operator new (size_t nbytes,const char* file, int line, const char* func) throw(std::bad_alloc); 64 void *operator new[] (size_t nbytes,const char* file, int line, const char* func) throw(std::bad_alloc); 65 #else 56 66 void *operator new (size_t nbytes,const char* file, int line) throw(std::bad_alloc); 57 67 void *operator new[] (size_t nbytes,const char* file, int line) throw(std::bad_alloc); 68 #endif 58 69 void operator delete (void *ptr,const char*, int) throw(); 59 70 void operator delete[] (void *ptr,const char*, int) throw(); 71 72 60 73 61 74 /** … … 63 76 * version that allows tracking. 64 77 */ 78 #ifdef __GNUC__ 79 #define new new(__FILE__,__LINE__,__PRETTY_FUNCTION__) 80 #else 65 81 #define new new(__FILE__,__LINE__) 82 #endif 66 83 67 84 #endif 68 85 #endif 69 86 87 88 #ifdef NDEBUG 89 #undef MEMDEBUG 90 #endif 70 91 71 92 #ifndef MEMDEBUG
Note:
See TracChangeset
for help on using the changeset viewer.