X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Fdebug.h;h=b9466c9f02c03f32772514788ca6ea866898a90c;hb=4f8e80463195b1fee6ebbeefb59722faf76134cc;hp=4190c89087f6283c7b7d9a943794d8bab50a50af;hpb=015232d106ee90c9cc8a114c167f1bc9507470db;p=libfirm diff --git a/ir/common/debug.h b/ir/common/debug.h index 4190c8908..b9466c9f0 100644 --- a/ir/common/debug.h +++ b/ir/common/debug.h @@ -49,7 +49,7 @@ enum firm_dbg_level_t { SET_LEVEL_ALL = SET_LEVEL_5 }; -typedef struct _firm_dbg_module_t firm_dbg_module_t; +typedef struct firm_dbg_module_t firm_dbg_module_t; /* Internal function to the debug module. */ void *_firm_dbg_make_msg(const firm_dbg_module_t *mod, unsigned mask, const char *fmt, ...); @@ -96,7 +96,7 @@ void firm_dbg_set_file(firm_dbg_module_t *module, FILE *file); /* If we have C99 use the __func__ variable for calling functions name. */ #if defined(__STD_VERSION__) && __STD_VERSION >= 199901L -#define _DBG(args) _DBG_MAIN(__func__, args) +#define _DBG(args) _DBG_MAIN(__func__, args) #else /* Else, check for gcc and use the proprietary __FUNCTION__ macro. */ @@ -154,17 +154,17 @@ void firm_dbg_set_file(firm_dbg_module_t *module, FILE *file); /* DEBUG OUTPUT IS COMPLETELY DISABLED */ -#define DBG(x) -#define DB(x) +#define DBG(x) (void)0 +#define DB(x) (void)0 /** create a debug handle in release mode */ -#define FIRM_DBG_REGISTER(handle, name) +#define FIRM_DBG_REGISTER(handle, name) (void)0 #define DEBUG_ONLY(code) #define RELEASE_ONLY(code) code -#define firm_dbg_set_mask(module, mask) -#define firm_dbg_get_mask(module) -#define firm_dbg_set_file(module, file) +#define firm_dbg_set_mask(module, mask) (void)0 +#define firm_dbg_get_mask(module) (void)0 +#define firm_dbg_set_file(module, file) (void)0 #endif /* DEBUG_libfirm */