pyruntime.swg 795 B

12345678910111213141516171819202122
  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. %insert(runtime) "swigrun.swg"; /* SWIG API */
  12. %insert(runtime) "swigerrors.swg"; /* SWIG errors */
  13. %insert(runtime) "pyhead.swg"; /* Python includes and fixes */
  14. %insert(runtime) "pyerrors.swg"; /* Python errors */
  15. %insert(runtime) "pythreads.swg"; /* Python thread code */
  16. %insert(runtime) "pyapi.swg"; /* Python API */
  17. %insert(runtime) "pyrun.swg"; /* Python run-time code */
  18. #if defined(SWIGPYTHON_BUILTIN)
  19. %insert(runtime) "builtin.swg"; /* Specialization for classes with single inheritance */
  20. #endif