3be3144906e49de5f3cc06a88c45a69e712a521a
[libfirm] / ir / ir / irprintf_t.h
1 /*
2  * Project:     libFIRM
3  * File name:   ir/ir/irprintf_t.h
4  * Purpose:     A little printf understanding some firm types.
5  * Author:      Sebastian Hack
6  * Created:     29.11.2004
7  * CVS-ID:      $Id$
8  * Copyright:   (c) 1998-2004 Universität Karlsruhe
9  * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
10  */
11
12 #ifndef _IRPRINTF_T_H
13 #define _IRPRINTF_T_H
14
15 #include "irprintf.h"
16
17 #ifdef DEBUG_libfirm
18
19 #define ir_debugf    ir_printf
20 #define ir_fdebugf   ir_fprintf
21
22 #else
23
24 static INLINE void ir_debugf(const char *fmt, ...)
25 {
26 }
27
28 static INLINE void ir_fdebugf(FILE *f, const char *fmt, ...)
29 {
30 }
31
32 #endif
33
34
35 #endif