diff --git a/Src/utils.hh b/Src/utils.hh index aee5894..504d01e 100644 --- a/Src/utils.hh +++ b/Src/utils.hh @@ -34,6 +34,9 @@ class Font; #define panic_if(cond, x...) \ do { if ((cond)) panic(x); } while(0) +#define warning_if(cond, x...) \ + do { if ((cond)) warning(x); } while(0) + static inline char *xstrdup(const char *s) { char *out = strdup(s);