summaryrefslogtreecommitdiff
path: root/com32/include/dprintf.h
blob: b8a3b84c847348cd8229b7db3741b1c42fc79ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
 * dprintf.h
 */

#ifndef _DPRINTF_H
#define _DPRINTF_H

#ifdef DEBUG

# include <stdio.h>

# ifdef DEBUG_STDIO
#  define dprintf  printf
#  define vdprintf vprintf
# else
void dprintf(const char *, ...);
void vdprintf(const char *, va_list);
# endif

#else

# define dprintf(fmt, ...)	((void)(0))
# define vdprintf(fmt, ap)	((void)(0))

#endif /* DEBUG */

# if DEBUG >= 2
/* Really verbose debugging... */
#  define dprintf2  dprintf
#  define vdprintf2 vdprintf
# else
#  define dprintf2(fmt, ...)	((void)(0))
#  define vdprintf2(fmt, ap)	((void)(0))
# endif

#endif /* _DPRINTF_H */