From: Amos Jeffries Date: Fri, 27 Jul 2012 03:53:06 +0000 (-0600) Subject: Add helper macro for parser deprecation notes X-Git-Tag: SQUID_3_2_0_19~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5db86e0275d530ef2b83e2f0a0111dd34ea8eb93;p=thirdparty%2Fsquid.git 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. --- 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 {