QTrk
memdbg.h
Go to the documentation of this file.
1 #pragma once
2 #ifdef USE_MEMDBG
3  void* operator new(size_t s, const char* file, int line);
4  void* operator new[](size_t s, const char* file, int line);
5 
6  void operator delete(void* p);
7  void operator delete[](void* p);
8 
9  #define new new(__FILE__, __LINE__)
10  #pragma warning(disable: 4291) // no matching operator delete found; memory will not be freed if initialization throws an exception
11 
12 #endif