Lib/octave: fix call to octave::call_stack::current() for Octave >= 4.4
This commit is contained in:
parent
931656bcbe
commit
df92ad6ebc
1 changed files with 5 additions and 0 deletions
|
|
@ -375,7 +375,12 @@ DEFUN_DLD( SWIG_name, args, nargout, SWIG_name_usage ) {
|
||||||
SWIG_InitializeModule(0);
|
SWIG_InitializeModule(0);
|
||||||
SWIG_PropagateClientData();
|
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();
|
octave_function *me = octave_call_stack::current();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!SWIG_Octave_InstallFunction(me, "subclass")) {
|
if (!SWIG_Octave_InstallFunction(me, "subclass")) {
|
||||||
return octave_value_list();
|
return octave_value_list();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue