From de0fec8fcb2e09500b4665b07fdad6a2902d9c87 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 26 Jan 2021 17:54:23 -0800 Subject: Removed check() and replaced with err()/errx() --- utils.h | 1 - 1 file changed, 1 deletion(-) (limited to 'utils.h') diff --git a/utils.h b/utils.h index 17da86e..96b1aeb 100644 --- a/utils.h +++ b/utils.h @@ -13,7 +13,6 @@ #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(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)) -- cgit v1.2.3