summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-26 14:44:09 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-26 14:44:09 +0000
commitf56288d7a8b0972a0ceacd359dd0b7438f7540d0 (patch)
tree483d44cf0a4f826772fde788eb02b61fdd238b13 /eval.c
parentd77305fc9cdf295bee3d6d6148dfc602291ad91f (diff)
replace `GET_THREAD()->ec` to `GET_EC()`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/eval.c b/eval.c
index 1453f3d..178b8f6 100644
--- a/eval.c
+++ b/eval.c
@@ -129,7 +129,7 @@ static void
ruby_finalize_1(void)
{
ruby_sig_finalize();
- GET_THREAD()->ec->errinfo = Qnil;
+ GET_EC()->errinfo = Qnil;
rb_gc_call_finalizer_at_exit();
}
@@ -1102,7 +1102,7 @@ frame_called_id(rb_control_frame_t *cfp)
ID
rb_frame_this_func(void)
{
- return frame_func_id(GET_THREAD()->ec->cfp);
+ return frame_func_id(GET_EC()->cfp);
}
/*!
@@ -1119,7 +1119,7 @@ rb_frame_this_func(void)
ID
rb_frame_callee(void)
{
- return frame_called_id(GET_THREAD()->ec->cfp);
+ return frame_called_id(GET_EC()->cfp);
}
static rb_control_frame_t *
@@ -1794,7 +1794,7 @@ rb_set_errinfo(VALUE err)
if (!NIL_P(err) && !rb_obj_is_kind_of(err, rb_eException)) {
rb_raise(rb_eTypeError, "assigning non-exception to $!");
}
- GET_THREAD()->ec->errinfo = err;
+ GET_EC()->errinfo = err;
}
static VALUE