summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 15:00:23 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-29 15:00:23 +0000
commitd95acd784e6aaab471a182a96d1b079b73b623ec (patch)
treee76bd63a70f432a838ea3bc96382df995ff9913b /vm_eval.c
parent502d8d7ccbe7489180d01b6afb5fb3b879ab6745 (diff)
use `GET_EC()`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_eval.c b/vm_eval.c
index 9e6fd35..9834702 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1876,8 +1876,8 @@ rb_f_throw(int argc, VALUE *argv)
void
rb_throw_obj(VALUE tag, VALUE value)
{
- rb_thread_t *th = GET_THREAD();
- struct rb_vm_tag *tt = th->ec->tag;
+ rb_execution_context_t *ec = GET_EC();
+ struct rb_vm_tag *tt = ec->tag;
while (tt) {
if (tt->tag == tag) {
@@ -1894,8 +1894,8 @@ rb_throw_obj(VALUE tag, VALUE value)
rb_exc_raise(rb_class_new_instance(numberof(desc), desc, rb_eUncaughtThrow));
}
- th->ec->errinfo = (VALUE)THROW_DATA_NEW(tag, NULL, TAG_THROW);
- EC_JUMP_TAG(th->ec, TAG_THROW);
+ ec->errinfo = (VALUE)THROW_DATA_NEW(tag, NULL, TAG_THROW);
+ EC_JUMP_TAG(ec, TAG_THROW);
}
void