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.
This commit is contained in:
cremno
2015-05-04 16:53:50 +02:00
parent 2fe556d9c0
commit 3cd80a520a
+3 -2
View File
@@ -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