feat: added UNREACHABLE macro
This commit is contained in:
parent
3f5189f221
commit
4428b2b135
1 changed files with 5 additions and 0 deletions
5
debug.h
5
debug.h
|
|
@ -66,4 +66,9 @@ extern int g_debug_log_lvl;
|
|||
}\
|
||||
} while(0)
|
||||
|
||||
#define UNREACHABLE(...) do {\
|
||||
LOG_ERROR(__VA_ARGS__);\
|
||||
abort()\
|
||||
} while(0)
|
||||
|
||||
#endif // !CUTES_DEBUG_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue