Skip to content

Commit

Permalink
Merge pull request #1 from alatina/alatina-patch-octave-8.1.0-1
Browse files Browse the repository at this point in the history
Update octrun.swg to work with Octave v8.1.0
  • Loading branch information
alatina authored Mar 14, 2023
2 parents 2171115 + e8fa1a5 commit 0ef8dad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Lib/octave/octrun.swg
Original file line number Diff line number Diff line change
Expand Up @@ -1630,8 +1630,12 @@ SWIGRUNTIME void SWIG_Octave_LinkGlobalValue(std::string name) {
octave::interpreter *interp = octave::interpreter::the_interpreter ();
interp->assign(name, interp->global_varval(name));
octave::tree_evaluator& tree_eval = interp->get_evaluator();
#if SWIG_OCTAVE_PREREQ(8,0,0)
std::shared_ptr<octave::stack_frame> stackFrame = tree_eval.get_current_stack_frame();
#else
octave::call_stack& callStack = tree_eval.get_call_stack();
std::shared_ptr<octave::stack_frame> stackFrame = callStack.get_current_stack_frame();
std::shared_ptr<octave::stack_frame> stackFrame = tree_eval.get_current_stack_frame();
#endif
octave::symbol_record sym=symscope.lookup_symbol(name);
stackFrame->mark_global(sym);
#else
Expand Down

0 comments on commit 0ef8dad

Please sign in to comment.