Skip to content

Commit

Permalink
Call SWIG_Python_AppendOutput() with correct number of arguments depe…
Browse files Browse the repository at this point in the history
…nding on SWIG version (#1062)

Call SWIG_Python_AppendOutput() with correct number of arguments depending on SWIG version.
  • Loading branch information
jesper-friis authored Jan 7, 2025
1 parent 3521fe9 commit b71f105
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindings/python/dlite-python.i
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,11 @@ PyObject *dlite_run_file(const char *path, PyObject *globals, PyObject *locals)
argout = Py_None;
Py_INCREF(argout);
}
#if SWIG_VERSION >= 0x040100
$result = SWIG_Python_AppendOutput($result, argout, 0);
#else
$result = SWIG_Python_AppendOutput($result, argout);
#endif
}


Expand Down

0 comments on commit b71f105

Please sign in to comment.