diff src/variables.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 2d14817353a6
children e40e19761d06
line wrap: on
line diff
--- a/src/variables.cc	Mon Sep 27 21:08:16 2010 +0200
+++ b/src/variables.cc	Tue Sep 28 09:08:29 2010 +0200
@@ -385,14 +385,7 @@
   octave_value retval;
 
   unwind_protect frame;
-  
-  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);
 
   retval = symbol_table::find (symbol_name);