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