1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2008-05-22 10:01:32 +00:00
parent 571883a217
commit 6f04138f75
2 changed files with 7 additions and 3 deletions

View file

@ -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.

6
vm.c
View file

@ -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 */
{