Revision d8e83543 dbg.h

View differences:

dbg.h
7 7
#ifndef DBG_H
8 8
#define DBG_H
9 9

  
10
#ifdef DEBUG
11

  
12 10
#include <stdio.h>
13 11

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

  
16
#include <stdio.h>
14
#ifdef DEBUG
17 15
#define dprintf(...) fprintf(stderr,__VA_ARGS__)
18
#define dtprintf(...) dtprintf2(__VA_ARGS__)
16
#define dtprintf(...) ftprintf(stderr,__VA_ARGS__)
19 17
#else
20 18
#define dprintf(...)
21 19
#define dtprintf(...)

Also available in: Unified diff