diff options
author | ubq323 <ubq323@ubq323.website> | 2024-08-17 21:28:12 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-08-17 21:28:12 +0100 |
commit | 976aeda6465d0700843acbacdf79e18a652fd57e (patch) | |
tree | 259686d58b6b1b8dab248f3b9bf03aa5157735ac /util.h | |
parent | 41989a2ad51b15bf512b81f2c147070ba8a28ef8 (diff) |
add when form
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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__) |