summaryrefslogtreecommitdiff
path: root/src/utils/log.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-26 14:49:37 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-26 14:49:37 +0330
commit03796c59c8e0d7140c85eeb23dc3341837fe54b4 (patch)
treea54d5b5aa9c62005629fd1af8301ce8026648560 /src/utils/log.h
parentcccf0dd70816133398fc5d3a8c666b07753edc1e (diff)
add better support for builtin
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__)