summaryrefslogtreecommitdiffstats
path: root/src/vat2/vat2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vat2/vat2.h')
-rw-r--r--src/vat2/vat2.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vat2/vat2.h b/src/vat2/vat2.h
new file mode 100644
index 00000000000..d477b7279b3
--- /dev/null
+++ b/src/vat2/vat2.h
@@ -0,0 +1,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