aboutsummaryrefslogtreecommitdiffstats
path: root/eval_jump.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-12 17:44:30 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-13 09:47:08 +0900
commit0c2d81dada88b5a3946c3162187df4223bfe6b4f (patch)
treeae1fc5e5aef4fcbd0a422c476ba026249fc646e3 /eval_jump.c
parentaac4d9d6c7e6b6b0742f3941b574f6006ccb5672 (diff)
downloadruby-0c2d81dada88b5a3946c3162187df4223bfe6b4f.tar.gz
Renamed ruby_finalize_{0,1}
And pass rb_execution_context_t as an argument.
Diffstat (limited to 'eval_jump.c')
-rw-r--r--eval_jump.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/eval_jump.c b/eval_jump.c
index a74aed959e..8b1275b381 100644
--- a/eval_jump.c
+++ b/eval_jump.c
@@ -107,11 +107,10 @@ exec_end_procs_chain(struct end_proc_data *volatile *procs, VALUE *errp)
}
}
-void
-rb_exec_end_proc(void)
+static void
+rb_ec_exec_end_proc(rb_execution_context_t * ec)
{
enum ruby_tag_type state;
- rb_execution_context_t * volatile ec = GET_EC();
volatile VALUE errinfo = ec->errinfo;
EC_PUSH_TAG(ec);
@@ -122,7 +121,7 @@ rb_exec_end_proc(void)
}
else {
EC_TMPPOP_TAG();
- error_handle(state);
+ error_handle(ec, state);
if (!NIL_P(ec->errinfo)) errinfo = ec->errinfo;
EC_REPUSH_TAG();
goto again;