From 3cd80a520ac2cc0d044ce29583b68a946661519a Mon Sep 17 00:00:00 2001 From: cremno Date: Mon, 4 May 2015 16:53:50 +0200 Subject: define YYDEBUG macro conditionally The YYDEBUG macro enables parser debugging which unnecessarily increases the executable size (9 to 10 KB). Now it only will be defined when PARSER_DEBUG is too. --- src/parse.y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/parse.y b/src/parse.y index eb78f47d4..2aa5bc9ad 100644 --- a/src/parse.y +++ b/src/parse.y @@ -6,8 +6,9 @@ %{ #undef PARSER_DEBUG - -#define YYDEBUG 1 +#ifdef PARSER_DEBUG +# define YYDEBUG 1 +#endif #define YYERROR_VERBOSE 1 /* * Force yacc to use our memory management. This is a little evil because -- cgit v1.2.3