pyapi.swg 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* -----------------------------------------------------------------------------
  2. * Python API portion that goes into the runtime
  3. * ----------------------------------------------------------------------------- */
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /* -----------------------------------------------------------------------------
  8. * Constant declarations
  9. * ----------------------------------------------------------------------------- */
  10. /* Constant Types */
  11. #define SWIG_PY_POINTER 4
  12. #define SWIG_PY_BINARY 5
  13. /* Constant information structure */
  14. typedef struct swig_const_info {
  15. int type;
  16. char *name;
  17. long lvalue;
  18. double dvalue;
  19. void *pvalue;
  20. swig_type_info **ptype;
  21. } swig_const_info;
  22. /* -----------------------------------------------------------------------------
  23. * Wrapper of PyInstanceMethod_New() used in Python 3
  24. * It is exported to the generated module, used for -fastproxy
  25. * ----------------------------------------------------------------------------- */
  26. #if PY_VERSION_HEX >= 0x03000000
  27. SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
  28. {
  29. return PyInstanceMethod_New(func);
  30. }
  31. #else
  32. SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
  33. {
  34. return NULL;
  35. }
  36. #endif
  37. #ifdef __cplusplus
  38. }
  39. #endif