|
|
@ -47,18 +47,16 @@ All rights reserved. |
|
|
|
inline std::ofstream debugLogger; |
|
|
|
inline std::ofstream debugLogger; |
|
|
|
|
|
|
|
|
|
|
|
#ifdef _DEBUG |
|
|
|
#ifdef _DEBUG |
|
|
|
#ifndef __EMSCRIPTEN__ |
|
|
|
#ifndef __EMSCRIPTEN__ |
|
|
|
#ifndef __linux__ |
|
|
|
#ifndef __linux__ |
|
|
|
#define NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ ) |
|
|
|
#define NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ ) |
|
|
|
// Replace _NORMAL_BLOCK with _CLIENT_BLOCK if you want the
|
|
|
|
// Replace _NORMAL_BLOCK with _CLIENT_BLOCK if you want the
|
|
|
|
// allocations to be of _CLIENT_BLOCK type
|
|
|
|
// allocations to be of _CLIENT_BLOCK type
|
|
|
|
#else |
|
|
|
#endif |
|
|
|
#define NEW new |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
#define NEW new |
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#else |
|
|
|
|
|
|
|
|
|
|
|
#ifndef NEW //For everything else.
|
|
|
|
#define NEW new |
|
|
|
#define NEW new |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|