summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Wette <karl.wette@ligo.org>2018-05-10 22:03:41 +1000
committerKarl Wette <karl.wette@ligo.org>2018-05-12 22:25:07 +1000
commitdf92ad6ebcb0995f04194b38ee19e0b7f08c730a (patch)
tree8615ff44b74714c827807b81ed48bab0d53c6f2f
parent931656bcbe7c2bf37bb5d831b47fab9a38695e91 (diff)
downloadswig-df92ad6ebcb0995f04194b38ee19e0b7f08c730a.tar.gz
Lib/octave: fix call to octave::call_stack::current() for Octave >= 4.4
-rw-r--r--Lib/octave/octruntime.swg5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/octave/octruntime.swg b/Lib/octave/octruntime.swg
index b2fde69c2..d83a27f57 100644
--- a/Lib/octave/octruntime.swg
+++ b/Lib/octave/octruntime.swg
@@ -375,7 +375,12 @@ DEFUN_DLD( SWIG_name, args, nargout, SWIG_name_usage ) {
SWIG_InitializeModule(0);
SWIG_PropagateClientData();
+#if SWIG_OCTAVE_PREREQ(4,4,0)
+ octave::call_stack& stack = octave::interpreter::the_interpreter()->get_call_stack();
+ octave_function *me = stack.current();
+#else
octave_function *me = octave_call_stack::current();
+#endif
if (!SWIG_Octave_InstallFunction(me, "subclass")) {
return octave_value_list();