Ole Troan | df87f80 | 2020-11-18 19:17:48 +0100 | [diff] [blame] | 1 | #ifndef included_vat2_h |
2 | #define included_vat2_h | ||||
3 | |||||
4 | #include <stdbool.h> | ||||
5 | |||||
6 | extern bool debug; | ||||
7 | |||||
8 | #define DBG(fmt, args...) do {if (debug) fprintf(stderr, fmt, ## args); } while(0) | ||||
9 | #define ERR(fmt, args...) fprintf(stderr, "VAT2: %s:%d:%s(): " fmt, \ | ||||
10 | __FILE__, __LINE__, __func__, ##args) | ||||
11 | |||||
12 | #endif |