aboutsummaryrefslogtreecommitdiffstats
path: root/eval_jump.ci
diff options
context:
space:
mode:
Diffstat (limited to 'eval_jump.ci')
-rw-r--r--eval_jump.ci11
1 files changed, 4 insertions, 7 deletions
diff --git a/eval_jump.ci b/eval_jump.ci
index db32bba8f5..948ac635be 100644
--- a/eval_jump.ci
+++ b/eval_jump.ci
@@ -159,13 +159,10 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data)
/* exit */
-static void call_end_proc _((VALUE data));
-
-static void
-call_end_proc(VALUE data)
+void
+rb_call_end_proc(VALUE data)
{
- /* TODO: fix me */
- proc_invoke(data, rb_ary_new2(0), Qundef, 0);
+ rb_proc_call(data, rb_ary_new());
}
/*
@@ -198,7 +195,7 @@ rb_f_at_exit(void)
rb_raise(rb_eArgError, "called without a block");
}
proc = rb_block_proc();
- rb_set_end_proc(call_end_proc, proc);
+ rb_set_end_proc(rb_call_end_proc, proc);
return proc;
}