mirror of
https://github.com/ruby/ruby.git
synced 2025-09-19 02:23:59 +02:00
* vm.c (invoke_block_from_c): split this function into several
functions. * vm_insnhelper.c (vm_yield_callee_setup_arg): remove this function beacuse it is only delegation function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d8736ecff2
commit
cb223b7533
4 changed files with 92 additions and 62 deletions
|
@ -1054,7 +1054,7 @@ rb_yield_splat(VALUE values)
|
|||
VALUE
|
||||
rb_yield_block(VALUE val, VALUE arg, int argc, const VALUE *argv, VALUE blockarg)
|
||||
{
|
||||
const rb_block_t *blockptr = 0;
|
||||
const rb_block_t *blockptr = NULL;
|
||||
if (!NIL_P(blockarg)) {
|
||||
rb_proc_t *blockproc;
|
||||
GetProcPtr(blockarg, blockproc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue