From bbbea8ad7f3842b6180676437cf45b9aba23009b Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 2 Jul 2012 13:50:03 +1200 Subject: [PATCH] Add helper macro for parser deprecation notes When '-k parse' is used deprecation notices and upgrade help messages etc need to be bumped consistently up to level-0 and this macro will help reducing the (?:) code mistakes. --- src/Debug.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Debug.h b/src/Debug.h index 98e51e1e55..2e13080734 100644 --- a/src/Debug.h +++ b/src/Debug.h @@ -73,6 +73,8 @@ extern void ctx_exit(Ctx ctx); /* levels 2-8 are still being discussed amongst the developers */ #define DBG_DATA 9 /**< output is a large data dump only necessary for advanced debugging */ +#define DBG_PARSE_NOTE(x) (opt_parse_cfg_only?0:(x)) /**< output is always to be displayed on '-k parse' but at level-x normally. */ + class Debug { -- 2.47.2