summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 14:06:58 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 14:06:58 +0000
commita93c650312c11fd22e146ec51d3208da28595152 (patch)
tree4c5ed9484db85f1fd728c214fab58f99547beecd /process.c
parent5256f7752763249288662c6c5ffc5686d244a535 (diff)
`rb_ec_error_print()`.
* eval_error.c (rb_threadptr_error_print): renamed to rb_ec_error_print() and it accepts `ec`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/process.c b/process.c
index 16d489a7ec..a67e63b89d 100644
--- a/process.c
+++ b/process.c
@@ -3850,10 +3850,10 @@ rb_f_abort(int argc, const VALUE *argv)
{
rb_check_arity(argc, 0, 1);
if (argc == 0) {
- rb_thread_t *th = GET_THREAD();
- VALUE errinfo = th->ec->errinfo;
+ rb_execution_context_t *ec = GET_EC();
+ VALUE errinfo = ec->errinfo;
if (!NIL_P(errinfo)) {
- rb_threadptr_error_print(th, errinfo);
+ rb_ec_error_print(ec, errinfo);
}
rb_exit(EXIT_FAILURE);
}