From fe1fb3c31aa5f42c213eaa0c51f9d5a2cef07711 Mon Sep 17 00:00:00 2001 From: Ole Troan Date: Tue, 6 Dec 2022 14:41:41 +0100 Subject: vat2: add plugin-path parameter Add plugin-path parameter to aid external plugin development. Multiple directories are supported as a colon separated list. Type: improvement Signed-off-by: Ole Troan Change-Id: Ida35dedceccd0019ea68e56f7a3672c530258447 --- src/vat2/vat2.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/vat2/vat2.h') diff --git a/src/vat2/vat2.h b/src/vat2/vat2.h index d477b7279b3..acdb85368cc 100644 --- a/src/vat2/vat2.h +++ b/src/vat2/vat2.h @@ -3,9 +3,15 @@ #include -extern bool debug; +extern bool vat2_debug; -#define DBG(fmt, args...) do {if (debug) fprintf(stderr, fmt, ## args); } while(0) +#define DBG(fmt, args...) \ + do \ + { \ + if (vat2_debug) \ + fprintf (stderr, fmt, ##args); \ + } \ + while (0) #define ERR(fmt, args...) fprintf(stderr, "VAT2: %s:%d:%s(): " fmt, \ __FILE__, __LINE__, __func__, ##args) -- cgit 1.2.3-korg