summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 05:12:39 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-07 05:12:39 +0000
commitee189904f0e3e0263adcbcc844947f6ccddfb7ad (patch)
tree44340ae3b77eb40615bc81fab4c35e4a0c9d9f6a /thread.c
parentd1013f2ab85006da94f7af04f97961bb9e9da38d (diff)
rename to rb_ec_set_raised().
* thread.c (rb_threadptr_set_raised): rename to rb_ec_set_raised and accepts `ec` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index 5084e9789e..642d48f81c 100644
--- a/thread.c
+++ b/thread.c
@@ -2167,12 +2167,12 @@ rb_threadptr_signal_exit(rb_thread_t *th)
#endif
int
-rb_threadptr_set_raised(rb_thread_t *th)
+rb_ec_set_raised(rb_execution_context_t *ec)
{
- if (th->ec->raised_flag & RAISED_EXCEPTION) {
+ if (ec->raised_flag & RAISED_EXCEPTION) {
return 1;
}
- th->ec->raised_flag |= RAISED_EXCEPTION;
+ ec->raised_flag |= RAISED_EXCEPTION;
return 0;
}