/*
- * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
- *
* This file is part of libFirm.
- *
- * This file may be distributed and/or modified under the terms of the
- * GNU General Public License version 2 as published by the Free Software
- * Foundation and appearing in the file LICENSE.GPL included in the
- * packaging of this file.
- *
- * Licensees holding valid libFirm Professional Edition licenses may use
- * this file in accordance with the libFirm Commercial License.
- * Agreement provided with the Software.
- *
- * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
- * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE.
+ * Copyright (C) 2012 University of Karlsruhe.
*/
/**
* @brief Debug facility.
* @author Michael Beck, Sebastian Hack
* @date 15.12.2004
- * @version $Id$
*/
#ifndef FIRM_COMMON_DEBUG_H
#define FIRM_COMMON_DEBUG_H
#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 _DBG(args) _DBG_MAIN(__func__, args)
#define _DB(args) _firm_dbg_print args
/**