Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
348 B

  1. #ifdef HEAPSIG
  2. void *operator new(unsigned sz, char * szFile, unsigned short usLineNo);
  3. // void *operator new(size_t sz, char * szFile, unsigned short usLineNo);
  4. void heapstat( int status );
  5. void uiHeapDump(void);
  6. #define NEW new (__FILE__, __LINE__)
  7. #define UIHEAPWALK atexit(uiHeapDump)
  8. #else
  9. #define NEW new
  10. #define UIHEAPWALK
  11. #endif