summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorJesper Jensen <jesper@slashwin.dk>2021-08-29 00:47:32 +0200
committerJesper Jensen <jesper@slashwin.dk>2021-08-29 00:47:32 +0200
commit5471d80c5350f764ec53733bae9d32c0a1a339e0 (patch)
tree1578cb3da331b1819a12eb3127ceb25baaa3cd36 /src/log.h
parente00efb4381c5123699e4ef9807b67eba54ea06a0 (diff)
Add formal benc cursor
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/log.h b/src/log.h
index 1717011..12135af 100644
--- a/src/log.h
+++ b/src/log.h
@@ -13,8 +13,9 @@
printf(format "\n", ## __VA_ARGS__); \
fflush(stderr)
-#define fatal(format, ...) \
- printf(format "\n", ## __VA_ARGS__); \
- fflush(stderr); \
- abort()
+#define fatal(format, ...) do{\
+ printf(format "\n", ## __VA_ARGS__); \
+ fflush(stderr); \
+ abort(); \
+ } while(0)