aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-27 07:23:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-27 07:23:23 +0000
commit689df4ae2a8ee6606c13ac9173ffce85aa1b06b7 (patch)
tree6e4f10ae8ce2c51845ca05c30ea6a800f7f42792 /compile.c
parent52d810e2f07429a21c3d306a0d77fc4db2e46d22 (diff)
downloadruby-689df4ae2a8ee6606c13ac9173ffce85aa1b06b7.tar.gz
compile.c: debug prints to stderr
* compile.c: send all debug prints to stderr, as ruby_debug_printf does. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 91d1310ddf..b9e8f08912 100644
--- a/compile.c
+++ b/compile.c
@@ -156,6 +156,7 @@ r_value(VALUE value)
#endif
#if CPDEBUG > 1 || CPDEBUG < 0
+#define printf ruby_debug_printf
#define debugs if (compile_debug_print_indent(1)) ruby_debug_printf
#define debug_compile(msg, v) ((void)(compile_debug_print_indent(1) && fputs((msg), stderr)), (v))
#else
@@ -1045,7 +1046,6 @@ iseq_setup(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
if (compile_debug > 1) {
VALUE str = rb_iseq_disasm(iseq->self);
printf("%s\n", StringValueCStr(str));
- fflush(stdout);
}
debugs("[compile step: finish]\n");