]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/pyrun.swg
reSWIGged
[wxWidgets.git] / wxPython / src / pyrun.swg
CommitLineData
d14a1e28
RD
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
d14a1e28
RD
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#define SWIG_PY_INT 1
16#define SWIG_PY_FLOAT 2
17#define SWIG_PY_STRING 3
18#define SWIG_PY_POINTER 4
19#define SWIG_PY_BINARY 5
20
21/* Flags for pointer conversion */
22
23#define SWIG_POINTER_EXCEPTION 0x1
24#define SWIG_POINTER_DISOWN 0x2
25
26/* Exception handling in wrappers */
27#define SWIG_fail goto fail
28
29/* Constant information structure */
30typedef struct swig_const_info {
31 int type;
32 char *name;
33 long lvalue;
34 double dvalue;
35 void *pvalue;
36 swig_type_info **ptype;
37} swig_const_info;
38
d14a1e28
RD
39/* Common SWIG API */
40#define SWIG_ConvertPtr(obj, pp, type, flags) \
41 SWIG_Python_ConvertPtr(obj, pp, type, flags)
42#define SWIG_NewPointerObj(p, type, flags) \
43 SWIG_Python_NewPointerObj(p, type, flags)
44#define SWIG_MustGetPtr(p, type, argnum, flags) \
45 SWIG_Python_MustGetPtr(p, type, argnum, flags)
1de47c7c 46
d14a1e28
RD
47/* Python-specific SWIG API */
48#define SWIG_newvarlink() \
49 SWIG_Python_newvarlink()
50#define SWIG_addvarlink(p, name, get_attr, set_attr) \
51 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
52#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
53 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
d14a1e28
RD
54#define SWIG_NewPackedObj(ptr, sz, type) \
55 SWIG_Python_NewPackedObj(ptr, sz, type)
56#define SWIG_InstallConstants(d, constants) \
57 SWIG_Python_InstallConstants(d, constants)
58
d7f82584 59typedef double (*py_objasdbl_conv)(PyObject *obj);
d14a1e28 60
98fb9b71
RD
61SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
62SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
63SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
64SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
65SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
66SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
67SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
68SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
d14a1e28 69
d14a1e28
RD
70
71/* Contract support */
72
11188b02 73#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 74
d14a1e28
RD
75#ifdef __cplusplus
76}
77#endif
0190c472 78