]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/pyrun.swg
SWIG Runtime update
[wxWidgets.git] / wxPython / src / pyrun.swg
1 /***********************************************************************
2 * pyrun.swg for wxPython
3 *
4 * Include only the function prototypes and such from SWIG's pyrun.swg,
5 * but not the runtime functions themselves. This helps keep the
6 * wrapper files clean of unnecessary stuff that is in the libpy.c file
7 * anyway.
8 *
9 ************************************************************************/
10
11
12 #include "Python.h"
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #define SWIG_PY_INT 1
19 #define SWIG_PY_FLOAT 2
20 #define SWIG_PY_STRING 3
21 #define SWIG_PY_POINTER 4
22 #define SWIG_PY_BINARY 5
23
24 /* Flags for pointer conversion */
25
26 #define SWIG_POINTER_EXCEPTION 0x1
27 #define SWIG_POINTER_DISOWN 0x2
28
29 /* Exception handling in wrappers */
30 #define SWIG_fail goto fail
31
32 /* Constant information structure */
33 typedef struct swig_const_info {
34 int type;
35 char *name;
36 long lvalue;
37 double dvalue;
38 void *pvalue;
39 swig_type_info **ptype;
40 } swig_const_info;
41
42
43
44 /* Common SWIG API */
45 #define SWIG_ConvertPtr(obj, pp, type, flags) \
46 SWIG_Python_ConvertPtr(obj, pp, type, flags)
47 #define SWIG_NewPointerObj(p, type, flags) \
48 SWIG_Python_NewPointerObj(p, type, flags)
49 #define SWIG_MustGetPtr(p, type, argnum, flags) \
50 SWIG_Python_MustGetPtr(p, type, argnum, flags)
51
52 /* Python-specific SWIG API */
53 #define SWIG_newvarlink() \
54 SWIG_Python_newvarlink()
55 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
56 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
57 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
58 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
59 #define SWIG_PackData(c, ptr, sz) \
60 SWIG_Python_PackData(c, ptr, sz)
61 #define SWIG_UnpackData(c, ptr, sz) \
62 SWIG_Python_UnpackData(c, ptr, sz)
63 #define SWIG_NewPackedObj(ptr, sz, type) \
64 SWIG_Python_NewPackedObj(ptr, sz, type)
65 #define SWIG_InstallConstants(d, constants) \
66 SWIG_Python_InstallConstants(d, constants)
67
68
69 SWIGEXPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
70 SWIGEXPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
71 SWIGEXPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
72
73 SWIGEXPORT(PyObject *) SWIG_Python_newvarlink(void);
74 SWIGEXPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
75 SWIGEXPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
76 SWIGEXPORT(char *) SWIG_Python_PackData(char *c, void *, int);
77 SWIGEXPORT(char *) SWIG_Python_UnpackData(char *c, void *, int);
78 SWIGEXPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
79 SWIGEXPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
80
81
82 /* Contract support */
83
84 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
85
86
87 #ifdef __cplusplus
88 }
89 #endif
90