From b6db22bcc4dee35e40f4684e34717a334150a12f Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 19 Dec 2009 12:59:09 +0000 Subject: [PATCH] Add warning macro --- utils.hh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils.hh b/utils.hh index 6ab5210..00dc4b6 100644 --- a/utils.hh +++ b/utils.hh @@ -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)