Commit b07b1ff3 authored by Matthias Braun's avatar Matthias Braun
Browse files

we always compile with C99 support now

parent 81f878ff
......@@ -93,21 +93,7 @@ void firm_dbg_set_file(firm_dbg_module_t *module, FILE *file);
#define _DBG_MAIN(func,args) \
_firm_dbg_print_msg(__FILE__, __LINE__, func, _firm_dbg_make_msg args)
/* 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)
#else
/* Else, check for gcc and use the proprietary __FUNCTION__ macro. */
#ifdef __GNUC__
#define _DBG(args) _DBG_MAIN(__FUNCTION__, args)
#else
/* Else go without the name of the calling function. */
#define _DBG(args) _DBG_MAIN("", args)
#endif /* __GNUC__ */
#endif /* __STD_VERSION__ ... */
#define _DB(args) _firm_dbg_print args
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment