summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorAndrea L <andrea.latina@cern.ch>2023-03-14 22:28:37 +0100
committerGitHub <noreply@github.com>2023-03-14 22:28:37 +0100
commitdf27df772f19e374ec9e4d5579947461d8ad6b2c (patch)
tree0fba8d3b210800c61550ee15c476582b60f836bd /Lib
parent0ef8dadc35d92dc286b7f2f7602f665e2acf648b (diff)
parent8d211ca6732cd0745b196b63ceeedc6cd4f5225c (diff)
downloadswig-df27df772f19e374ec9e4d5579947461d8ad6b2c.tar.gz
Merge pull request #2 from alatina/alatina-patch-octave-8.1.0
Update octruntime.swg to work with Octave v8.1.0
Diffstat (limited to 'Lib')
-rw-r--r--Lib/octave/octruntime.swg4
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)