diff options
Diffstat (limited to 'wlp/macro.h')
-rw-r--r-- | wlp/macro.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/wlp/macro.h b/wlp/macro.h new file mode 100644 index 0000000..303b3c6 --- /dev/null +++ b/wlp/macro.h @@ -0,0 +1,44 @@ +/* + * macro.h - Copyright 2000, 2001 Cosimo Alfarano <Alfarano@CS.UniBo.It> + * You can use this software under the terms of the GPL. If we meet some day, + * and you think this stuff is worth it, you can buy me a beer in return. + * + * Thanks to md for this useful formula. Beer is beer. + */ + + +#ifndef _macro_h_ +#define _macro_h_ + +#define LINELEN 2048 +#define TRUE 1 +#define FALSE 0 + +/* +#define WITHQUOTES +#define WITHANGBRACKETS +*/ + +#define ERR(a,b...) fprintf(stderr, a, ## b) + +/* Define it for debug info on stderr (better if in .c module ...) */ +/* +#ifndef DEBUG + #define DEBUG +#endif +*/ + + +#ifdef DEBUG + #define DBG(a...) fprintf(stderr, ## a) + /* for a verbose debug*/ + #define VDBG(a,b...) fprintf(stderr, "%s(): " a, __FUNCTION__ , ## b) +#else + #define DBG(a...) + #define VDBG(a...) +#endif + + +#endif + +/* EOF */ |