From 976aeda6465d0700843acbacdf79e18a652fd57e Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 17 Aug 2024 21:28:12 +0100 Subject: add when form --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util.h') diff --git a/util.h b/util.h index 6b61b56..e4c47f0 100644 --- a/util.h +++ b/util.h @@ -4,7 +4,7 @@ #include #include -#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__) -- cgit v1.2.3