feat: added UNREACHABLE macro

main
Sara 2024-01-29 10:38:42 +01:00
parent 3f5189f221
commit 4428b2b135
1 changed files with 5 additions and 0 deletions

View File

@ -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