summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
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)