summaryrefslogtreecommitdiff
path: root/eval_error.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-23 20:42:45 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-23 20:42:45 +0000
commit378041cfbf91809fe84fe70bbc90162f065a18a0 (patch)
tree2cb926f9dbc8b387a4addad937d3d2c9a79a3cff /eval_error.c
parenta0873931cedcb7039b752d6e615e46e3d3d4b2a1 (diff)
* eval_error.c (error_print), vm_eval.c (eval_string_with_cref),
vm_trace.c (rb_suppress_tracing): use TH_PUSH_TAG() instead of PUSH_TAG(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/eval_error.c b/eval_error.c
index dc9e99d..76140fc 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -89,14 +89,14 @@ error_print(void)
return;
rb_thread_raised_clear(th);
- PUSH_TAG();
- if (EXEC_TAG() == 0) {
+ TH_PUSH_TAG(th);
+ if (TH_EXEC_TAG() == 0) {
errat = get_backtrace(errinfo);
}
else {
errat = Qnil;
}
- if (EXEC_TAG())
+ if (TH_EXEC_TAG())
goto error;
if (NIL_P(errat)) {
const char *file = rb_sourcefile();
@@ -122,7 +122,7 @@ error_print(void)
}
eclass = CLASS_OF(errinfo);
- if (EXEC_TAG() == 0) {
+ if (TH_EXEC_TAG() == 0) {
e = rb_funcall(errinfo, rb_intern("message"), 0, 0);
StringValue(e);
einfo = RSTRING_PTR(e);
@@ -132,7 +132,7 @@ error_print(void)
einfo = "";
elen = 0;
}
- if (EXEC_TAG())
+ if (TH_EXEC_TAG())
goto error;
if (eclass == rb_eRuntimeError && elen == 0) {
warn_print(": unhandled exception\n");
@@ -192,7 +192,7 @@ error_print(void)
}
}
error:
- POP_TAG();
+ TH_POP_TAG();
rb_thread_raised_set(th, raised_flag);
}