Mercurial > octave
diff libinterp/corefcn/mex.cc @ 29172:32fdcf67a683 stable
don't propagate prevailing isargout info through mexCallMATLAB (bug #59597)
* mex.cc (mexCallMATLAB): Invalidate lvalue_list before calling feval.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 11 Dec 2020 05:06:07 -0500 |
parents | b018f553fd85 |
children | 4363b185d31f 0a5b15007766 |
line wrap: on
line diff
--- a/libinterp/corefcn/mex.cc Thu Dec 10 23:23:09 2020 +0100 +++ b/libinterp/corefcn/mex.cc Fri Dec 11 05:06:07 2020 -0500 @@ -3254,6 +3254,16 @@ try { + octave::tree_evaluator& tw = interp.get_evaluator (); + + octave::unwind_action act + ([&tw] (const std::list<octave::octave_lvalue> *lvl) + { + tw.set_lvalue_list (lvl); + }, tw.lvalue_list ()); + + tw.set_lvalue_list (nullptr); + retval = octave::feval (fname, args, nargout); } catch (const octave::execution_exception&)