Mercurial > octave
diff src/error.cc @ 11029:4ab04ea74b08
make an internal function for try simulation
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 28 Sep 2010 09:08:29 +0200 |
parents | 89f4d7e294cc |
children | 3329616444f0 |
line wrap: on
line diff
--- a/src/error.cc Mon Sep 27 21:08:16 2010 +0200 +++ b/src/error.cc Tue Sep 28 09:08:29 2010 +0200 @@ -1821,3 +1821,18 @@ { return Vlast_warning_id; } + +void +interpreter_try (unwind_protect& frame) +{ + frame.protect_var (error_state); + frame.protect_var (buffer_error_messages); + frame.protect_var (Vdebug_on_error); + frame.protect_var (Vdebug_on_warning); + + buffer_error_messages++; + Vdebug_on_error = false; + Vdebug_on_warning = false; +} + +