Go to the documentation of this file. 10 #if defined(LUG_COMPILER_GCC) || defined(LUG_COMPILER_CLANG) 12 #if defined(LUG_SYSTEM_ANDROID) 14 #define LUG_DEBUG_BREAK() __asm__ volatile(".inst 0xe7f001f0"); 16 #define LUG_DEBUG_BREAK() __asm__("int $3") 19 #elif defined(LUG_COMPILER_MSVC) 21 #define LUG_DEBUG_BREAK() __debugbreak() 26 #define LUG_ASSERT(assertion, message)\ 28 if (LUG_UNLIKELY(!(assertion))) {\ 29 std::cerr << "Assertion failed: " << (message) << std::endl <<\ 30 "In " << __FILE__ << std::endl <<\ 31 " at `" << LUG_SYSTEM_FUNCTION_NAME << "` line " << __LINE__ << std::endl;\ 38 #define LUG_ASSERT(assertion, message) 39 #define LUG_DEBUG_BREAK()