removed ruby_error_print
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
285f139076
commit
aea98ff0d5
@ -206,12 +206,6 @@ rb_threadptr_error_print(rb_thread_t *volatile th, volatile VALUE errinfo)
|
|||||||
rb_thread_raised_set(th, raised_flag);
|
rb_thread_raised_set(th, raised_flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
ruby_error_print(void)
|
|
||||||
{
|
|
||||||
error_print(GET_THREAD());
|
|
||||||
}
|
|
||||||
|
|
||||||
#define undef_mesg_for(v, k) rb_fstring_cstr("undefined"v" method `%1$s' for "k" `%2$s'")
|
#define undef_mesg_for(v, k) rb_fstring_cstr("undefined"v" method `%1$s' for "k" `%2$s'")
|
||||||
#define undef_mesg(v) ( \
|
#define undef_mesg(v) ( \
|
||||||
is_mod ? \
|
is_mod ? \
|
||||||
|
@ -1154,7 +1154,6 @@ VALUE rb_warning_string(const char *fmt, ...);
|
|||||||
VALUE rb_refinement_module_get_refined_class(VALUE module);
|
VALUE rb_refinement_module_get_refined_class(VALUE module);
|
||||||
|
|
||||||
/* eval_error.c */
|
/* eval_error.c */
|
||||||
void ruby_error_print(void);
|
|
||||||
VALUE rb_get_backtrace(VALUE info);
|
VALUE rb_get_backtrace(VALUE info);
|
||||||
|
|
||||||
/* eval_jump.c */
|
/* eval_jump.c */
|
||||||
|
@ -3857,8 +3857,10 @@ rb_f_abort(int argc, const VALUE *argv)
|
|||||||
{
|
{
|
||||||
rb_check_arity(argc, 0, 1);
|
rb_check_arity(argc, 0, 1);
|
||||||
if (argc == 0) {
|
if (argc == 0) {
|
||||||
if (!NIL_P(GET_THREAD()->errinfo)) {
|
rb_thread_t *th = GET_THREAD();
|
||||||
ruby_error_print();
|
VALUE errinfo = th->errinfo;
|
||||||
|
if (!NIL_P(errinfo)) {
|
||||||
|
rb_threadptr_error_print(th, errinfo);
|
||||||
}
|
}
|
||||||
rb_exit(EXIT_FAILURE);
|
rb_exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user