summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-23 08:39:03 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-23 08:39:03 +0000
commitdaad618740a3ce9e266086cf7dfa7adcfb239a20 (patch)
treebb42a78b3bb679b411ff2a951cac81adba488e3f /error.c
parent28278b836beae2370f6c596713061a1fd4e104e7 (diff)
eval_error.c: rb_error_write flags
* eval_error.c (rb_error_write): add highlight and reverse mode flags. defaulted to rb_stderr_tty_p() if Qnil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/error.c b/error.c
index 0a992b2701..9f4b79b7bb 100644
--- a/error.c
+++ b/error.c
@@ -977,7 +977,7 @@ exc_to_s(VALUE exc)
}
/* FIXME: Include eval_error.c */
-void rb_error_write(VALUE errinfo, VALUE errat, VALUE str);
+void rb_error_write(VALUE errinfo, VALUE errat, VALUE str, VALUE highlight, VALUE reverse);
/*
* call-seq:
@@ -994,7 +994,7 @@ exc_full_message(VALUE exc)
{
VALUE str = rb_str_new2("");
VALUE errat = rb_get_backtrace(exc);
- rb_error_write(exc, errat, str);
+ rb_error_write(exc, errat, str, Qnil, Qnil);
return str;
}