1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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:
nobu 2017-06-16 01:53:15 +00:00
parent 285f139076
commit aea98ff0d5
3 changed files with 4 additions and 9 deletions

View file

@ -206,12 +206,6 @@ rb_threadptr_error_print(rb_thread_t *volatile th, volatile VALUE errinfo)
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(v) ( \
is_mod ? \

View file

@ -1154,7 +1154,6 @@ VALUE rb_warning_string(const char *fmt, ...);
VALUE rb_refinement_module_get_refined_class(VALUE module);
/* eval_error.c */
void ruby_error_print(void);
VALUE rb_get_backtrace(VALUE info);
/* eval_jump.c */

View file

@ -3857,8 +3857,10 @@ rb_f_abort(int argc, const VALUE *argv)
{
rb_check_arity(argc, 0, 1);
if (argc == 0) {
if (!NIL_P(GET_THREAD()->errinfo)) {
ruby_error_print();
rb_thread_t *th = GET_THREAD();
VALUE errinfo = th->errinfo;
if (!NIL_P(errinfo)) {
rb_threadptr_error_print(th, errinfo);
}
rb_exit(EXIT_FAILURE);
}