Statistics
| Branch: | Revision:

streamers / dbg.h @ d8e83543

History | View | Annotate | Download (415 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
#include <stdio.h>
11

    
12
int ftprintf(FILE *stream, const char *format, ...);
13

    
14
#ifdef DEBUG
15
#define dprintf(...) fprintf(stderr,__VA_ARGS__)
16
#define dtprintf(...) ftprintf(stderr,__VA_ARGS__)
17
#else
18
#define dprintf(...)
19
#define dtprintf(...)
20
#endif
21

    
22
#endif        /* DBG_H */