diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-23 08:39:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-23 08:39:03 +0000 |
commit | daad618740a3ce9e266086cf7dfa7adcfb239a20 (patch) | |
tree | bb42a78b3bb679b411ff2a951cac81adba488e3f /error.c | |
parent | 28278b836beae2370f6c596713061a1fd4e104e7 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |