1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* eval.c (rb_catch): backout.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-10-20 09:28:13 +00:00
parent 6eb98c5ebe
commit 229c37a6da
2 changed files with 5 additions and 13 deletions

View file

@ -1,3 +1,7 @@
Mon Oct 20 18:28:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (rb_catch): backout.
Mon Oct 20 17:31:46 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (PUSH_FRAME): generate unique number to be TAG_JUMP()

14
eval.c
View file

@ -10217,19 +10217,7 @@ rb_catch(tag, func, data)
VALUE (*func)();
VALUE data;
{
int state;
VALUE val = Qnil; /* OK */
PUSH_TAG(PROT_NONE);
PUSH_SCOPE();
if ((state = EXEC_TAG()) == 0) {
val = rb_iterate((VALUE(*)_((VALUE)))catch_i, ID2SYM(rb_intern(tag)), func, data);
}
POP_SCOPE();
POP_TAG();
if (state) JUMP_TAG(state);
return val;
return rb_iterate((VALUE(*)_((VALUE)))catch_i, ID2SYM(rb_intern(tag)), func, data);
}
static VALUE