Go to the documentation of this file.
19 #define MTL__STR_HELPER__(x) #x
20 #define MTL__STR__(x) MTL__STR_HELPER__(x)
21 #define MTL__LOCATION_HELPER__ __FILE__ ":" MTL__STR__(__LINE__)
22 #define MTL__LOCATION__ (MTL__LOCATION_HELPER__)
27 #ifndef MTL_MULTITHREAD_APPLICATION
28 #define CERR(__X__) std::cerr << __X__
29 #define COUT(__X__) std::cout << __X__
30 #define WCOUT(__X__) std::wcout << __X__
33 extern inline void MTLLockOutputStream();
34 extern inline void MTLUnlockOutputStream();
35 #define CERR(__X__) {MTLLockOutputStream(); std::cerr << __X__; MTLUnlockOutputStream();}
36 #define COUT(__X__) {MTLLockOutputStream(); std::cout << __X__; MTLUnlockOutputStream();}
37 #define WCOUT(__X__) {MTLLockOutputStream(); std::wcout << __X__; MTLUnlockOutputStream();}
44 #define MTL_Assert assert
45 #define MTL_StaticAssert static_assert
46 #define MTL_SleepMs(_ms_) std::this_thread::sleep_for(std::chrono::milliseconds(_ms_))
47 #define MTL_Unused(x) (void)x;