From b6ecdf5fc8071f66d267c904a9c7888b59fef165 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 7 Nov 2017 04:01:13 +0000 Subject: th->ec: rb_threadptr_reset_raised() * thread.c (rb_threadptr_reset_raised): rename to `rb_ec_reset_raised` and accepts `ec`. * vm_trace.c: the following functions accept `ec` instead of `th` * exec_hooks_body * exec_hooks_precheck * exec_hooks_unprotected * exec_hooks_protected git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index 4dcd9eab3b..5084e9789e 100644 --- a/thread.c +++ b/thread.c @@ -2177,12 +2177,12 @@ rb_threadptr_set_raised(rb_thread_t *th) } int -rb_threadptr_reset_raised(rb_thread_t *th) +rb_ec_reset_raised(rb_execution_context_t *ec) { - if (!(th->ec->raised_flag & RAISED_EXCEPTION)) { + if (!(ec->raised_flag & RAISED_EXCEPTION)) { return 0; } - th->ec->raised_flag &= ~RAISED_EXCEPTION; + ec->raised_flag &= ~RAISED_EXCEPTION; return 1; } -- cgit v1.2.3