mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (yield_under_i): argument should be passed in avalue
from. [ruby-dev:29044] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df80a7b4bb
commit
7318a6db76
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jul 18 16:52:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (yield_under_i): argument should be passed in avalue
|
||||
from. [ruby-dev:29044]
|
||||
|
||||
Tue Jul 18 15:49:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* pack.c (pack_unpack): propagate association array to copied
|
||||
|
|
4
eval.c
4
eval.c
|
@ -6481,8 +6481,10 @@ static VALUE
|
|||
yield_under_i(VALUE arg)
|
||||
{
|
||||
VALUE *args = (VALUE *)arg;
|
||||
int flags = YIELD_PUBLIC_DEF;
|
||||
if (args[0] != Qundef) flags |= YIELD_ARY_ARGS;
|
||||
|
||||
return rb_yield_0(args[0], args[1], ruby_cbase, YIELD_PUBLIC_DEF);
|
||||
return rb_yield_0(args[0], args[1], ruby_cbase, flags);
|
||||
}
|
||||
|
||||
/* block eval under the class/module context */
|
||||
|
|
Loading…
Add table
Reference in a new issue