X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=blobdiff_plain;f=common.h;h=017cb4f99dd2adba81301d185efb89405cfab79e;hp=a950f79194c55d849fe82da5d18e35cef2675464;hb=b7a6b3c7fb66628a4b14af804418dbfff4072e95;hpb=4698d40e0ba982029b4e1f018f2bdfc1b99a5b32 diff --git a/common.h b/common.h index a950f79..017cb4f 100644 --- a/common.h +++ b/common.h @@ -1,13 +1,12 @@ +/** @file common.h + * @brief General purpose macros. + */ + #ifndef __COMMON_H__ #define __COMMON_H__ #include - -/* -#ifndef CONFIG_DEBUG -#define CONFIG_DEBUG -#endif -*/ +#include "config.h" #ifdef CONFIG_DEBUG #define DEBUG(fmt, ...) do { printf("*** %25s(): line %-4d *** " fmt, __func__, __LINE__, ##__VA_ARGS__); } while (0) @@ -27,4 +26,6 @@ do { \ } \ } while (0); +#define error_msg(...) fprintf(stderr, "Error: " __VA_ARGS__) + #endif /* __COMMON_H__ */