]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add helper macro for parser deprecation notes
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 Jul 2012 03:53:06 +0000 (21:53 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 27 Jul 2012 03:53:06 +0000 (21:53 -0600)
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

index 98e51e1e55255b47391e4ca0e7064ee7cc652032..2e13080734faf80bc5a2641e2dc1e476a46befce 100644 (file)
@@ -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
 {