summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcremno <[email protected]>2015-05-04 16:53:50 +0200
committercremno <[email protected]>2015-05-04 16:53:50 +0200
commit3cd80a520ac2cc0d044ce29583b68a946661519a (patch)
treee7cb7ea80a3ed8432d17ee6579300fa24edc7276
parent2fe556d9c039839c20965a2c90dff703f04e40ec (diff)
downloadmruby-3cd80a520ac2cc0d044ce29583b68a946661519a.tar.gz
mruby-3cd80a520ac2cc0d044ce29583b68a946661519a.zip
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.
-rw-r--r--src/parse.y5
1 files changed, 3 insertions, 2 deletions
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