diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/log.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/log.h b/src/utils/log.h index 32f6a8f..620b2a3 100644 --- a/src/utils/log.h +++ b/src/utils/log.h @@ -2,4 +2,6 @@ #define printLog(format,...) _printLogBack(format, __FILE_NAME__, __LINE__, ## __VA_ARGS__) +#define UNREACHABLE printLog("Unreachable");exit(1) + extern void _printLogBack(const char *format, const char *file, int line, ...); |