diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-22 10:01:32 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-22 10:01:32 +0000 |
commit | 6f04138f75d0a0aaa3ceb891030c8277164052cc (patch) | |
tree | 44ed506b5de63627da28bcc6a7e364ace3cf95f0 /vm.c | |
parent | 571883a217da5e947baff016f49d934e01618668 (diff) | |
download | ruby-6f04138f75d0a0aaa3ceb891030c8277164052cc.tar.gz |
* vm.c (sdr, nsdr): define methods only if VMDEBUG is defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ { |