diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-18 11:39:20 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-18 11:39:20 -0800 |
| commit | 4b3579c968a5f6c9239ee6235f03108d80e1a2e3 (patch) | |
| tree | ec318cefbd3433a24a0c6d4614e3a3e09400301e /utils.h | |
| parent | 0b0e99bfac8e11463ae15211882aab98ba150dcb (diff) | |
More bools, because why not
Diffstat (limited to 'utils.h')
| -rw-r--r-- | utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ #include "match.h" #define streq(a, b) (strcmp(a, b) == 0) -#define check(cond, ...) do { if (!(cond)) { (void)fprintf(stderr, __VA_ARGS__); (void)fwrite("\n", 1, 1, stderr); exit(EXIT_FAILURE); } } while(0) +#define check(cond, ...) do { if (!(cond)) { (void)fprintf(stderr, __VA_ARGS__); (void)fwrite("\n", 1, 1, stderr); exit(EXIT_FAILURE); } } while(false) #define new(t) memcheck(calloc(1, sizeof(t))) #define xcalloc(a,b) memcheck(calloc(a,b)) #define xrealloc(a,b) memcheck(realloc(a,b)) |
