12 lines
348 B
C++
Raw Normal View History

2001-01-01 00:00:00 +01:00
#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