blob: acdb85368cc68259d639ed45487590740fdaaefe [file] [log] [blame]
Ole Troandf87f802020-11-18 19:17:48 +01001#ifndef included_vat2_h
2#define included_vat2_h
3
4#include <stdbool.h>
5
Ole Troanfe1fb3c2022-12-06 14:41:41 +01006extern bool vat2_debug;
Ole Troandf87f802020-11-18 19:17:48 +01007
Ole Troanfe1fb3c2022-12-06 14:41:41 +01008#define DBG(fmt, args...) \
9 do \
10 { \
11 if (vat2_debug) \
12 fprintf (stderr, fmt, ##args); \
13 } \
14 while (0)
Ole Troandf87f802020-11-18 19:17:48 +010015#define ERR(fmt, args...) fprintf(stderr, "VAT2: %s:%d:%s(): " fmt, \
16 __FILE__, __LINE__, __func__, ##args)
17
18#endif