aboutsummaryrefslogtreecommitdiffstats
path: root/src/vat2/vat2.h
blob: d477b7279b3a3084b69e5b8dcce0cf66f3146b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef included_vat2_h
#define included_vat2_h

#include <stdbool.h>

extern bool debug;

#define DBG(fmt, args...) do {if (debug) fprintf(stderr, fmt, ## args); } while(0)
#define ERR(fmt, args...) fprintf(stderr, "VAT2: %s:%d:%s(): " fmt, \
                                  __FILE__, __LINE__, __func__, ##args)

#endif