Mercurial > hg > octave-nkf
diff src/ov-fcn-handle.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 | 2cc9b08bfd39 |
children | 54697b37d8bf |
line wrap: on
line diff
--- a/src/ov-fcn-handle.cc +++ b/src/ov-fcn-handle.cc @@ -1879,17 +1879,8 @@ else { // Simulate try/catch. - // FIXME: there should be a method for that. 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; + interpreter_try (frame); root_val = make_fcn_handle (head_name); if (error_state)