mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_method.c (Init_eval_method): registers notimplement_body as a
mark-object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
918fefb7f7
commit
ba0ac946e9
2 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,7 @@
|
|||
Sun Jul 5 08:08:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Sun Jul 5 08:11:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_method.c (Init_eval_method): registers notimplement_body as a
|
||||
mark-object.
|
||||
|
||||
* vm_insnhelper.c (vm_yield_setup_block_args): restores the firs
|
||||
arg where is overwritten at funcall. [ruby-core:24139]
|
||||
|
|
|
@ -435,7 +435,7 @@ rb_method_boundp(VALUE klass, ID id, int ex)
|
|||
return Qfalse;
|
||||
}
|
||||
if (rb_notimplement_body_p(method->nd_body))
|
||||
return Qfalse;
|
||||
return Qfalse;
|
||||
return Qtrue;
|
||||
}
|
||||
return Qfalse;
|
||||
|
@ -1175,7 +1175,7 @@ Init_eval_method(void)
|
|||
undefined = rb_intern("method_undefined");
|
||||
singleton_undefined = rb_intern("singleton_method_undefined");
|
||||
|
||||
rb_global_variable((VALUE*)¬implement_body);
|
||||
notimplement_body = NEW_CFUNC(rb_f_notimplement, -1);
|
||||
rb_gc_register_mark_object((VALUE)notimplement_body);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue