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 | |
Ole Troan | fe1fb3c | 2022-12-06 14:41:41 +0100 | [diff] [blame] | 6 | extern bool vat2_debug; |
Ole Troan | df87f80 | 2020-11-18 19:17:48 +0100 | [diff] [blame] | 7 | |
Ole Troan | fe1fb3c | 2022-12-06 14:41:41 +0100 | [diff] [blame] | 8 | #define DBG(fmt, args...) \ |
| 9 | do \ |
| 10 | { \ |
| 11 | if (vat2_debug) \ |
| 12 | fprintf (stderr, fmt, ##args); \ |
| 13 | } \ |
| 14 | while (0) |
Ole Troan | df87f80 | 2020-11-18 19:17:48 +0100 | [diff] [blame] | 15 | #define ERR(fmt, args...) fprintf(stderr, "VAT2: %s:%d:%s(): " fmt, \ |
| 16 | __FILE__, __LINE__, __func__, ##args) |
| 17 | |
| 18 | #endif |