From 80239a0b5d10948b293dad834cbde7fa87682e13 Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Mon, 8 Feb 2010 17:55:23 +0000 Subject: [PATCH] Add warning_if --- Src/utils.hh | 3 +++ 1 file changed, 3 insertions(+) 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);