summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
authorMitchell Blank Jr <[email protected]>2014-05-14 14:13:56 -0700
committerMitchell Blank Jr <[email protected]>2014-05-14 14:13:56 -0700
commit493025c3afc4cd8fb6dd96b17a5d908169175b37 (patch)
treecd0119edde201af0971524b679dbf33814dbf6b7 /src/codegen.c
parent6f6f50d5296656da9ff49169d2998a84ce28a0bf (diff)
downloadmruby-493025c3afc4cd8fb6dd96b17a5d908169175b37.tar.gz
mruby-493025c3afc4cd8fb6dd96b17a5d908169175b37.zip
print_r() and print_lv() should only be compiled in for ENABLE_STDIO
Diffstat (limited to 'src/codegen.c')
-rw-r--r--src/codegen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codegen.c b/src/codegen.c
index 451b38129..a1564d955 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -2638,6 +2638,7 @@ loop_pop(codegen_scope *s, int val)
if (val) push();
}
+#ifdef ENABLE_STDIO
static int
print_r(mrb_state *mrb, mrb_irep *irep, size_t n, int pre)
{
@@ -2680,6 +2681,7 @@ print_lv(mrb_state *mrb, mrb_irep *irep, mrb_code c, int r)
}
printf("\n");
}
+#endif
static void
codedump(mrb_state *mrb, mrb_irep *irep)