Add warning_if

This commit is contained in:
simon.kagstrom 2010-02-08 17:55:23 +00:00
parent 9e3796d44d
commit 80239a0b5d

View File

@ -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);