mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Reuse rb_method_call_kw function
This commit is contained in:
parent
08476c4579
commit
205c252ec7
Notes:
git
2022-09-25 07:11:37 +09:00
1 changed files with 1 additions and 2 deletions
3
proc.c
3
proc.c
|
@ -2452,8 +2452,7 @@ method_clone(VALUE self)
|
|||
static VALUE
|
||||
rb_method_call_pass_called_kw(int argc, const VALUE *argv, VALUE method)
|
||||
{
|
||||
VALUE procval = rb_block_given_p() ? rb_block_proc() : Qnil;
|
||||
return rb_method_call_with_block_kw(argc, argv, method, procval, RB_PASS_CALLED_KEYWORDS);
|
||||
return rb_method_call_kw(argc, argv, method, RB_PASS_CALLED_KEYWORDS);
|
||||
}
|
||||
|
||||
VALUE
|
||||
|
|
Loading…
Reference in a new issue