summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.h b/util.h
index 6b61b56..e4c47f0 100644
--- a/util.h
+++ b/util.h
@@ -4,7 +4,7 @@
#include <stdio.h>
#include <stdlib.h>
-#define CHECK(cond, ...) do { if (!(cond)) { fprintf(stderr, __VA_ARGS__); putchar('\n'); exit(1); } } while(0)
+#define CHECK(cond, ...) do { if (!(cond)) { fflush(stdout); fprintf(stderr, __VA_ARGS__); putchar('\n'); exit(1); } } while(0)
#define ERROR(...) CHECK(false, __VA_ARGS__)