summaryrefslogtreecommitdiff
path: root/debug.h
blob: 4b67b0ad58a3b8f9081e796d1afa88e4ebb1682c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef DEBUG_H
#define DEBUG_H

#include <stdio.h>

extern int verbose;

#define debug(...) do { \
    if (verbose) { \
        fprintf(stderr, __VA_ARGS__); \
    } \
} while (0)

#endif /* DEBUG_H */