Add warning macro

This commit is contained in:
simon.kagstrom 2009-12-19 12:59:09 +00:00
parent 60829984c7
commit b6db22bcc4

View File

@ -18,6 +18,13 @@
exit(1); \
} while(0)
#define warning(x...) do \
{ \
fprintf(stderr, "==============WARNING WARNING============\n"); \
fprintf(stderr, x); \
fprintf(stderr, "=========================================\n"); \
} while(0)
#define panic_if(cond, x...) \
do { if ((cond)) panic(x); } while(0)