mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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
This commit is contained in:
parent
aa07918c3a
commit
b6ecdf5fc8
5 changed files with 36 additions and 36 deletions
6
eval.c
6
eval.c
|
@ -524,7 +524,7 @@ setup_exception(rb_execution_context_t *ec, int tag, volatile VALUE mesg, VALUE
|
|||
rb_ivar_set(mesg, idBt_locations, at);
|
||||
set_backtrace(mesg, at);
|
||||
}
|
||||
rb_threadptr_reset_raised(rb_ec_thread_ptr(ec));
|
||||
rb_ec_reset_raised(ec);
|
||||
}
|
||||
EC_POP_TAG();
|
||||
if (state) goto fatal;
|
||||
|
@ -563,7 +563,7 @@ setup_exception(rb_execution_context_t *ec, int tag, volatile VALUE mesg, VALUE
|
|||
ec->errinfo = mesg;
|
||||
}
|
||||
else if (state) {
|
||||
rb_threadptr_reset_raised(rb_ec_thread_ptr(ec));
|
||||
rb_ec_reset_raised(ec);
|
||||
EC_JUMP_TAG(ec, state);
|
||||
}
|
||||
}
|
||||
|
@ -571,7 +571,7 @@ setup_exception(rb_execution_context_t *ec, int tag, volatile VALUE mesg, VALUE
|
|||
if (rb_threadptr_set_raised(rb_ec_thread_ptr(ec))) {
|
||||
fatal:
|
||||
ec->errinfo = exception_error;
|
||||
rb_threadptr_reset_raised(rb_ec_thread_ptr(ec));
|
||||
rb_ec_reset_raised(ec);
|
||||
EC_JUMP_TAG(ec, TAG_FATAL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue