diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-01-23 07:24:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-01-23 07:24:26 +0000 |
commit | 3164d544f1b66e8ae64a9eeb2a1a47f27d8a6d5f (patch) | |
tree | b370be4d87c070ad4c9bb88cf4abdf3df7dd6e98 /eval.c | |
parent | b0fbebdcc6fab9d433048fe1bf6af7f2d3a6d8a5 (diff) |
* eval.c (rb_yield_0): restore source file/line after yield.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3533,6 +3533,8 @@ rb_yield_0(val, self, klass, acheck) struct BLOCK * volatile block; struct SCOPE * volatile old_scope; struct FRAME frame; + char *const file = ruby_sourcefile; + int line = ruby_sourceline; int state; static unsigned serial = 1; @@ -3679,6 +3681,8 @@ rb_yield_0(val, self, klass, acheck) if (ruby_scope->flag & SCOPE_DONT_RECYCLE) scope_dup(old_scope); ruby_scope = old_scope; + ruby_sourcefile = file; + ruby_sourceline = line; if (state) { if (!block->tag) { switch (state & TAG_MASK) { |