#pragma once #include #ifndef __EMSCRIPTEN__ #include #endif #ifdef _DEBUG #define NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ ) // Replace _NORMAL_BLOCK with _CLIENT_BLOCK if you want the // allocations to be of _CLIENT_BLOCK type #else #define NEW new #endif #undef ERR //Stupid Windows #ifndef __EMSCRIPTEN__ #define ERR(err) { \ std::stringstream errStream; \ errStream<