Statistics
| Branch: | Revision:

streamers / dbg.h @ 7f591208

History | View | Annotate | Download (416 Bytes)

1
/*
2
 *  Copyright (c) 2010 Luca Abeni
3
 *  Copyright (c) 2010 Csaba Kiraly
4
 *
5
 *  This is free software; see gpl-3.0.txt
6
 */
7
#ifndef DBG_H
8
#define DBG_H
9

    
10
#ifdef DEBUG
11

    
12
#include <stdio.h>
13

    
14
int dtprintf2(const char *format, ...);
15

    
16
#include <stdio.h>
17
#define dprintf(...) fprintf(stderr,__VA_ARGS__)
18
#define dtprintf(...) dtprintf2(__VA_ARGS__)
19
#else
20
#define dprintf(...)
21
#define dtprintf(...)
22
#endif
23

    
24
#endif        /* DBG_H */