api: vat2 and json autogeneration for api messages
[vpp.git] / src / vat2 / vat2.h
diff --git a/src/vat2/vat2.h b/src/vat2/vat2.h
new file mode 100644 (file)
index 0000000..d477b72
--- /dev/null
@@ -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