summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--vm.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 486f47208a..529ad48307 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,9 @@
-Thu May 22 18:55:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu May 22 19:01:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (vm_get_ruby_level_cfp): moved from eval_intern.h.
+ * vm.c (sdr, nsdr): define methods only if VMDEBUG is defined.
+
Thu May 22 17:18:35 2008 Tanaka Akira <akr@fsij.org>
* array.c (rb_ary_compact_bang): fix reallocation size.
diff --git a/vm.c b/vm.c
index abfdb1225d..825dcc6a43 100644
--- a/vm.c
+++ b/vm.c
@@ -1826,8 +1826,10 @@ Init_VM(void)
rb_define_const(rb_cVM, "INSTRUCTION_NAMES", insns_name_array());
/* debug functions ::VM::SDR(), ::VM::NSDR() */
- /* rb_define_singleton_method(rb_cVM, "SDR", sdr, 0); */
- /* rb_define_singleton_method(rb_cVM, "NSDR", nsdr, 0); */
+#if VMDEBUG
+ rb_define_singleton_method(rb_cVM, "SDR", sdr, 0);
+ rb_define_singleton_method(rb_cVM, "NSDR", nsdr, 0);
+#endif
/* VM bootstrap: phase 2 */
{