summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-24 14:45:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-24 14:45:19 +0000
commitf5b0cb07e24bddb6c9cef3741cb2d79095ba0e91 (patch)
tree64ebad80b802a6318f5e409592c8325eda19576e /vm.c
parent08d2e528aa35ea30087f7e8990e5028f4c2693ab (diff)
* string.c (sym_call), vm.c (invoke_block_from_c),
vm_insnhelper.c (vm_yield_with_cfunc): pass given block. [ruby-core:32075] * vm_eval.c (rb_funcall_passing_block): new function to call method with passing given block. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm.c b/vm.c
index 898bee8613..0ed37363a2 100644
--- a/vm.c
+++ b/vm.c
@@ -549,6 +549,7 @@ invoke_block_from_c(rb_thread_t *th, const rb_block_t *block,
iseq->local_size - arg_size);
ncfp->me = th->passed_me;
th->passed_me = 0;
+ th->passed_block = blockptr;
if (cref) {
th->cfp->dfp[-1] = (VALUE)cref;