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