2018-11-18 01:56:00 +00:00
|
|
|
#pragma once
|
2015-09-23 13:23:11 +00:00
|
|
|
|
2018-11-18 01:56:00 +00:00
|
|
|
#if (defined(_MSC_VER) && _DEBUG)
|
2008-09-18 03:15:49 +00:00
|
|
|
#define MEM_LEAK_TEST
|
2015-09-23 13:23:11 +00:00
|
|
|
#endif
|
2008-09-18 03:15:49 +00:00
|
|
|
|
|
|
|
#ifdef MEM_LEAK_TEST
|
|
|
|
|
2018-11-18 01:56:00 +00:00
|
|
|
void* operator new (size_t size, const char* filename, unsigned int line);
|
|
|
|
void* operator new[](size_t size, const char* filename, unsigned int line);
|
|
|
|
void operator delete (void* ptr, const char* filename, unsigned int line);
|
|
|
|
void operator delete[](void* ptr, const char* filename, unsigned int line);
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2018-11-18 01:56:00 +00:00
|
|
|
#define new new(__FILE__, __LINE__)
|
2008-09-18 03:15:49 +00:00
|
|
|
|
2015-01-31 19:27:27 +00:00
|
|
|
#endif
|