Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Helpers/MemDebug.hpp

    r6d6b54 r992fd7  
    2828#endif
    2929
     30#include <cstdlib>
    3031#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 
    3932
    4033namespace Memory {
     
    6053  }
    6154}
    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
    6656void *operator new   (size_t nbytes,const char* file, int line) throw(std::bad_alloc);
    6757void *operator new[] (size_t nbytes,const char* file, int line) throw(std::bad_alloc);
    68 #endif
    6958void operator delete   (void *ptr,const char*, int) throw();
    7059void operator delete[] (void *ptr,const char*, int) throw();
    71 
    72 
    7360
    7461/**
     
    7663 * version that allows tracking.
    7764 */
    78 #ifdef __GNUC__
    79 #define new new(__FILE__,__LINE__,__PRETTY_FUNCTION__)
    80 #else
    8165#define new new(__FILE__,__LINE__)
    82 #endif
    8366
    8467#endif
    8568#endif
    8669
    87 
    88 #ifdef NDEBUG
    89 #undef MEMDEBUG
    90 #endif
    9170
    9271#ifndef MEMDEBUG
Note: See TracChangeset for help on using the changeset viewer.