mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-04 14:22:02 +00:00
[common] debug: print backtraces on assertions
This commit is contained in:
@@ -154,7 +154,9 @@ void debug_trace(const char * file, unsigned int line, const char * function,
|
||||
if (!(__VA_ARGS__)) \
|
||||
{ \
|
||||
DEBUG_ASSERT_PRINT(__VA_ARGS__); \
|
||||
DEBUG_PRINT_BACKTRACE(); \
|
||||
abort(); \
|
||||
DEBUG_UNREACHABLE_MARKER(); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user