From: Amos Jeffries Date: Mon, 2 Jul 2012 01:50:03 +0000 (+1200) Subject: Add helper macro for parser deprecation notes X-Git-Tag: sourceformat-review-1~202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbbea8ad7f3842b6180676437cf45b9aba23009b;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 {