mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (eval_under_i): evaluate source in caller's frame.
[ruby-dev:28076] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cda674e39c
commit
7c52d5f8cf
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Dec 20 22:41:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (eval_under_i): evaluate source in caller's frame.
|
||||||
|
[ruby-dev:28076]
|
||||||
|
|
||||||
Tue Dec 20 12:53:23 2005 why the lucky stiff <why@ruby-lang.org>
|
Tue Dec 20 12:53:23 2005 why the lucky stiff <why@ruby-lang.org>
|
||||||
|
|
||||||
* ext/syck/rubyext.c (syck_emitter_reset): to ensure compatibility
|
* ext/syck/rubyext.c (syck_emitter_reset): to ensure compatibility
|
||||||
|
|
4
eval.c
4
eval.c
|
@ -6315,7 +6315,11 @@ static VALUE
|
||||||
eval_under_i(VALUE arg)
|
eval_under_i(VALUE arg)
|
||||||
{
|
{
|
||||||
VALUE *args = (VALUE *)arg;
|
VALUE *args = (VALUE *)arg;
|
||||||
|
struct FRAME *f = ruby_frame;
|
||||||
|
|
||||||
|
if (f && (f = f->prev) && (f = f->prev)) {
|
||||||
|
ruby_frame = f;
|
||||||
|
}
|
||||||
return eval(args[0], args[1], Qnil, (char*)args[2], (int)args[3]);
|
return eval(args[0], args[1], Qnil, (char*)args[2], (int)args[3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue