Mercurial > hg > octave-lyh
diff src/error.cc @ 3815:c554ad71bafc
[project @ 2001-04-19 19:50:52 by jwe]
author | jwe |
---|---|
date | Thu, 19 Apr 2001 19:50:54 +0000 |
parents | 855bf76e1fe1 |
children | 31393822395b |
line wrap: on
line diff
--- a/src/error.cc +++ b/src/error.cc @@ -68,6 +68,9 @@ // the `unwind_protect' statement. bool buffer_error_messages = false; +// TRUE means error messages are turned off. +bool discard_error_messages = false; + // The message buffer. static std::ostrstream *error_message_buffer = 0; @@ -99,6 +102,9 @@ static void verror (const char *name, const char *fmt, va_list args) { + if (discard_error_messages) + return; + if (! buffer_error_messages) flush_octave_stdout (); @@ -358,6 +364,7 @@ va_list args; va_start (args, fmt); buffer_error_messages = false; + discard_error_messages = false; verror ("panic", fmt, args); va_end (args); abort ();