summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-18 17:04:05 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-18 17:04:05 +0000
commit26221584a98681b6f2f48970ccdf7f93d741e00b (patch)
tree9b86224b322e4d75180c16e036e30222bfeea383 /vm.c
parentba6a2e7f7456d6f25e9bd84ff6531b98ba85abcb (diff)
* vm.c (rb_vm_jump_tag_but_local_jump): remove unnessesary 2nd
argument. * load.c (rb_load_internal): ditto. * eval_intern.h (rb_vm_jump_tag_but_local_jump): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/vm.c b/vm.c
index a15bdbb..abcdf34 100644
--- a/vm.c
+++ b/vm.c
@@ -929,12 +929,10 @@ rb_vm_make_jump_tag_but_local_jump(int state, VALUE val)
}
void
-rb_vm_jump_tag_but_local_jump(int state, VALUE val)
+rb_vm_jump_tag_but_local_jump(int state)
{
- if (val != Qnil) {
- VALUE exc = rb_vm_make_jump_tag_but_local_jump(state, val);
- if (!NIL_P(exc)) rb_exc_raise(exc);
- }
+ VALUE exc = rb_vm_make_jump_tag_but_local_jump(state, Qundef);
+ if (!NIL_P(exc)) rb_exc_raise(exc);
JUMP_TAG(state);
}