From 4552f747159ad3ead5827bd17c006784163a38f2 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 26 Oct 2017 11:02:13 +0000 Subject: introduce EC_*_TAG() instead of TH_*_TAG() * eval_intern.h: introduce EC_*_TAG() macros instead of TH_*_TAG() macros. * TH_PUSH_TAG() -> EC_PUSH_TAG() * TH_POP_TAG() -> EC_POP_TAG() * TH_TMPPOP_TAG() -> EC_TMPPOP_TAG() * TH_REPUSH_TAG() -> EC_REPUSH_TAG() * TH_EXEC_TAG() -> EC_EXEC_TAG() * TH_JUMP_TAG() -> EC_JUMP_TAG() rb_threadptr_tag_state() , rb_ec_tag_jump() also accept `ec` instead of `th`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_error.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eval_error.c') diff --git a/eval_error.c b/eval_error.c index 274b2f8ec6..fd97fb3539 100644 --- a/eval_error.c +++ b/eval_error.c @@ -174,8 +174,8 @@ rb_threadptr_error_print(rb_thread_t *volatile th, volatile VALUE errinfo) return; rb_thread_raised_clear(th); - TH_PUSH_TAG(th); - if (TH_EXEC_TAG() == TAG_NONE) { + EC_PUSH_TAG(th->ec); + if (EC_EXEC_TAG() == TAG_NONE) { errat = rb_get_backtrace(errinfo); } else if (errat == Qundef) { @@ -201,7 +201,7 @@ rb_threadptr_error_print(rb_thread_t *volatile th, volatile VALUE errinfo) print_backtrace(eclass, errat, FALSE); } error: - TH_POP_TAG(); + EC_POP_TAG(); th->ec->errinfo = errinfo; rb_thread_raised_set(th, raised_flag); } -- cgit v1.2.3