api: vat2 and json autogeneration for api messages
[vpp.git] / src / vat2 / vat2.h
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