1 %insert(runtime) %{ 2 #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) 3 /* Use debug wrappers with the Python release dll */ 4 # undef _DEBUG 5 # include <Python.h> 6 # define _DEBUG 7 #else 8 # include <Python.h> 9 #endif 10 %} 11 12 %insert(runtime) "swigrun.swg"; /* SWIG API */ 13 %insert(runtime) "swigerrors.swg"; /* SWIG errors */ 14 %insert(runtime) "pyhead.swg"; /* Python includes and fixes */ 15 %insert(runtime) "pyerrors.swg"; /* Python errors */ 16 %insert(runtime) "pythreads.swg"; /* Python thread code */ 17 %insert(runtime) "pyapi.swg"; /* Python API */ 18 %insert(runtime) "pyrun.swg"; /* Python run-time code */ 19 20 #if defined(SWIGPYTHON_BUILTIN) 21 %insert(runtime) "builtin.swg"; /* Specialization for classes with single inheritance */ 22 #endif 23