diff options
-rw-r--r-- | Lib/octave/octruntime.swg | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/octave/octruntime.swg b/Lib/octave/octruntime.swg index e76151f14..3a41ba025 100644 --- a/Lib/octave/octruntime.swg +++ b/Lib/octave/octruntime.swg @@ -318,8 +318,10 @@ DEFUN_DLD( SWIG_name, args, nargout, SWIG_name_usage ) { SWIG_InitializeModule(0); SWIG_PropagateClientData(); -#if SWIG_OCTAVE_PREREQ(6,0,0) +if SWIG_OCTAVE_PREREQ(8,0,0) octave::tree_evaluator& tree_eval = octave::interpreter::the_interpreter()->get_evaluator(); + octave_function *me = tree_eval.current_function(); +#elif SWIG_OCTAVE_PREREQ(6,0,0) octave::tree_evaluator& tree_eval = octave::interpreter::the_interpreter()->get_evaluator(); octave::call_stack& stack = tree_eval.get_call_stack(); octave_function *me = stack.current_function(); #elif SWIG_OCTAVE_PREREQ(4,4,0) |