summaryrefslogtreecommitdiff
path: root/src/utils/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/log.h')
-rw-r--r--src/utils/log.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/log.h b/src/utils/log.h
index d080c6a..f9fb7ed 100644
--- a/src/utils/log.h
+++ b/src/utils/log.h
@@ -8,9 +8,9 @@
#endif
#ifdef __GNUC__
-#define UNREACHABLE_BACK (__builtin_unreachable())
+#define UNREACHABLE_BACK exit(1);__builtin_unreachable()
#else
-#define UNREACHABLE_BACK (exit(1))
+#define UNREACHABLE_BACK exit(1)
#endif
#define printLog(format,...) _printLogBack(format, __FILE_NAME__, __LINE__, ## __VA_ARGS__)