From 50c8982ea8e4c25e154084af1864617e7bd330ae Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 17 Feb 2010 08:05:42 +0000 Subject: * vm_insnhelper.c (vm_call_cfunc): removed unused variable. * vm.c (vm_frametype_name): define only when VMDEBUG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_eval.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vm_eval.c') diff --git a/vm_eval.c b/vm_eval.c index ada783da8d..2e011c7b7e 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -814,8 +814,10 @@ rb_f_loop(VALUE self) return Qnil; /* dummy */ } +#if VMDEBUG static const char * vm_frametype_name(const rb_control_frame_t *cfp); +#endif VALUE rb_iterate(VALUE (* it_proc) (VALUE), VALUE data1, @@ -858,7 +860,9 @@ rb_iterate(VALUE (* it_proc) (VALUE), VALUE data1, /* check skipped frame */ while (th->cfp != cfp) { - /* printf("skipped frame: %s\n", vm_frametype_name(th->cfp)); */ +#if VMDEBUG + printf("skipped frame: %s\n", vm_frametype_name(th->cfp)); +#endif if (UNLIKELY(VM_FRAME_TYPE(th->cfp) == VM_FRAME_MAGIC_CFUNC)) { const rb_method_entry_t *me = th->cfp->me; EXEC_EVENT_HOOK(th, RUBY_EVENT_C_RETURN, th->cfp->self, me->called_id, me->klass); -- cgit v1.2.3