git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12584 626c5289-ae23-0410-ae9c-e8d60b6d4f22
50 lines
1.3 KiB
Text
50 lines
1.3 KiB
Text
/* -----------------------------------------------------------------------------
|
|
* Python API portion that goes into the runtime
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#if 0
|
|
} /* cc-mode */
|
|
#endif
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Constant declarations
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* Constant Types */
|
|
#define SWIG_PY_POINTER 4
|
|
#define SWIG_PY_BINARY 5
|
|
|
|
/* Constant information structure */
|
|
typedef struct swig_const_info {
|
|
int type;
|
|
char *name;
|
|
long lvalue;
|
|
double dvalue;
|
|
void *pvalue;
|
|
swig_type_info **ptype;
|
|
} swig_const_info;
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Wrapper of PyInstanceMethod_New() used in Python 3
|
|
* It is exported to the generated module, used for -fastproxy
|
|
* ----------------------------------------------------------------------------- */
|
|
SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func))
|
|
{
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
return PyInstanceMethod_New(func);
|
|
#else
|
|
return NULL;
|
|
#endif
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
#if 0
|
|
{ /* cc-mode */
|
|
#endif
|
|
}
|
|
#endif
|
|
|