2020-09-30 16:53:49 +02:00

12 lines
348 B
C++

#ifdef HEAPSIG
void *operator new(unsigned sz, char * szFile, unsigned short usLineNo);
// void *operator new(size_t sz, char * szFile, unsigned short usLineNo);
void heapstat( int status );
void uiHeapDump(void);
#define NEW new (__FILE__, __LINE__)
#define UIHEAPWALK atexit(uiHeapDump)
#else
#define NEW new
#define UIHEAPWALK
#endif