diff libinterp/parse-tree/pt.cc @ 27474:3fec8e9fa2aa

make recover_from_exception a member function * interpreter.h, interpreter.cc (interpreter::recover_from_exception): Now a member function. Change all uses.
author John W. Eaton <jwe@octave.org>
date Fri, 04 Oct 2019 16:40:30 -0400
parents fd32c1a9b1bd
children b442ec6dda5c
line wrap: on
line diff
--- a/libinterp/parse-tree/pt.cc	Fri Oct 04 13:51:47 2019 -0700
+++ b/libinterp/parse-tree/pt.cc	Fri Oct 04 16:40:30 2019 -0400
@@ -90,7 +90,9 @@
           }
         catch (const execution_exception& e)
           {
-            interpreter::recover_from_exception ();
+            interpreter& interp = tw.get_interpreter ();
+
+            interp.recover_from_exception ();
 
             std::string tmp = e.message ();
 
@@ -98,6 +100,7 @@
                      tmp.c_str ());
           }
       }
+
     return retval;
   }
 }