summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-05 09:01:15 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-05 09:01:15 +0900
commit2778058a8aaf119a032f689fb36d77f9787ab13d (patch)
tree2c3bcdec14116a3d5bb8f5b78d142873cb12c5fd /include
parent41baf125f21e3fd49a7849e4b8bbf99e06a31b9e (diff)
parent30b6507817a349cd1bdc5139533010b58faf9d14 (diff)
downloadmruby-2778058a8aaf119a032f689fb36d77f9787ab13d.tar.gz
mruby-2778058a8aaf119a032f689fb36d77f9787ab13d.zip
Merge branch 'jf/parser-dump' of https://github.com/thecodeshop/mruby into thecodeshop-jf/parser-dump
Diffstat (limited to 'include')
-rw-r--r--include/mrbconf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mrbconf.h b/include/mrbconf.h
index e90b685bb..5a54ebeef 100644
--- a/include/mrbconf.h
+++ b/include/mrbconf.h
@@ -21,6 +21,9 @@ typedef int mrb_int;
typedef intptr_t mrb_sym;
#define readint(p,base) strtol((p),NULL,(base))
+#undef PARSER_DUMP /* do not print out parser state */
+//#define PARSER_DUMP /* print out parser state */
+
#undef INCLUDE_ENCODING /* not use encoding classes (ascii only) */
//#define INCLUDE_ENCODING /* use UTF-8 encoding classes */
@@ -31,6 +34,10 @@ typedef intptr_t mrb_sym;
# define INCLUDE_ENCODING /* Regexp depends Encoding */
#endif
+#ifdef MRUBY_DEBUG_BUILD
+# define PARSER_DUMP
+#endif
+
#undef HAVE_UNISTD_H /* WINDOWS */
#define HAVE_UNISTD_H /* LINUX */