replaced inline by __inline to allow to be compiled in gcc and msvc modes
[libfirm] / ir / common / debug.h
index 5f32588..0b923fb 100644 (file)
@@ -1,13 +1,31 @@
-/**
- * Debug facility.
- * @author Michael Beck, Sebastian Hack
- * @date 15.12.2004
+/*
+ * Copyright (C) 1995-2007 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.
  *
- * $Id$
+ * 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.
  */
 
-#ifndef _FIRM_DEBUG_H
-#define _FIRM_DEBUG_H
+/**
+ * @file
+ * @brief   Debug facility.
+ * @author  Michael Beck, Sebastian Hack
+ * @date    15.12.2004
+ * @version $Id$
+ */
+#ifndef FIRM_COMMON_DEBUG_H
+#define FIRM_COMMON_DEBUG_H
 
 #include "firm_config.h"
 
@@ -169,6 +187,7 @@ void firm_dbg_set_file(firm_dbg_module_t *module, FILE *file);
 #define FIRM_DBG_REGISTER(handle, name) handle = firm_dbg_register(name)
 #define DEBUG_ONLY(code)   code
 #define RELEASE_ONLY(code)
+#define DEBUG_ONLY_NICE
 
 #else /* ndef DEBUG_libfirm */
 
@@ -181,6 +200,7 @@ void firm_dbg_set_file(firm_dbg_module_t *module, FILE *file);
 #define FIRM_DBG_REGISTER(handle, name)
 #define DEBUG_ONLY(code)
 #define RELEASE_ONLY(code) code
+#define DEBUG_ONLY_NICE if(0)
 
 #define firm_dbg_set_mask(module, mask)
 #define firm_dbg_get_mask(module)
@@ -188,4 +208,4 @@ void firm_dbg_set_file(firm_dbg_module_t *module, FILE *file);
 
 #endif /* DEBUG_libfirm */
 
-#endif /* _FIRM_DEBUG_H */
+#endif