1 /***********************************************************************
2 * pyrun.swg for wxPython
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
9 ************************************************************************/
19 #define SWIG_PY_FLOAT 2
20 #define SWIG_PY_STRING 3
21 #define SWIG_PY_POINTER 4
22 #define SWIG_PY_BINARY 5
24 /* Flags for pointer conversion */
26 #define SWIG_POINTER_EXCEPTION 0x1
27 #define SWIG_POINTER_DISOWN 0x2
29 /* Exception handling in wrappers */
30 #define SWIG_fail goto fail
32 /* Constant information structure */
33 typedef struct swig_const_info {
39 swig_type_info **ptype;
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)
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)
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);
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[]);
82 /* Contract support */
84 #define SWIG_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
85 #define SWIG_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
87 #define SWIG_inherit_preassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
88 #define SWIG_inherit_postassert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
90 #define SWIG_invariant(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
91 #define SWIG_invariant_begin(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else
92 #define SWIG_invariant_end(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, msg #expr ); goto fail; } else