From b71f1058dab19b1579cd7550c055c21eae58ee20 Mon Sep 17 00:00:00 2001 From: Jesper Friis Date: Tue, 7 Jan 2025 10:02:27 +0100 Subject: [PATCH] Call SWIG_Python_AppendOutput() with correct number of arguments depending on SWIG version (#1062) Call SWIG_Python_AppendOutput() with correct number of arguments depending on SWIG version. --- bindings/python/dlite-python.i | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bindings/python/dlite-python.i b/bindings/python/dlite-python.i index 78433ad27..1bd67879d 100644 --- a/bindings/python/dlite-python.i +++ b/bindings/python/dlite-python.i @@ -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 }