Mercurial > octave
diff libinterp/octave-value/cdef-object.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/octave-value/cdef-object.cc Fri Oct 04 13:51:47 2019 -0700 +++ b/libinterp/octave-value/cdef-object.cc Fri Oct 04 16:40:30 2019 -0400 @@ -65,6 +65,8 @@ frame.protect_var (quit_allowed); quit_allowed = false; + interpreter& interp = __get_interpreter__ ("cdef_object_rep::release"); + interpreter_try (frame); try @@ -74,13 +76,13 @@ } catch (const interrupt_exception&) { - interpreter::recover_from_exception (); + interp.recover_from_exception (); warning ("interrupt occurred in handle class delete method"); } catch (const execution_exception& ee) { - interpreter::recover_from_exception (); + interp.recover_from_exception (); std::string msg = ee.message ();