mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@41bf282
This commit is contained in:
parent
5d21050182
commit
a0f5ff4c3c
75 changed files with 851 additions and 143 deletions
|
@ -23,6 +23,10 @@ VALUE proc_spec_rb_proc_call(VALUE self, VALUE prc, VALUE args) {
|
|||
return rb_proc_call(prc, args);
|
||||
}
|
||||
|
||||
VALUE proc_spec_rb_obj_is_proc(VALUE self, VALUE prc) {
|
||||
return rb_obj_is_proc(prc);
|
||||
}
|
||||
|
||||
/* This helper is not strictly necessary but reflects the code in wxRuby that
|
||||
* originally exposed issues with this Proc.new behavior.
|
||||
*/
|
||||
|
@ -61,6 +65,7 @@ void Init_proc_spec(void) {
|
|||
rb_define_method(cls, "rb_proc_arity", proc_spec_rb_proc_arity, 1);
|
||||
rb_define_method(cls, "rb_proc_call", proc_spec_rb_proc_call, 2);
|
||||
rb_define_method(cls, "rb_Proc_new", proc_spec_rb_Proc_new, 1);
|
||||
rb_define_method(cls, "rb_obj_is_proc", proc_spec_rb_obj_is_proc, 1);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue