diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-12-19 02:12:57 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-12-19 02:12:57 +0000 |
| commit | ed40f6f85c9c07c3c1224ae20601082c0309a631 (patch) | |
| tree | 4082515a3e85107bd4a278b6613857b58da1770f /lib/python/swig.h | |
| parent | b3658b04216ed3974047b4c4ec885ee0161d9267 (diff) | |
| download | enigma2-ed40f6f85c9c07c3c1224ae20601082c0309a631.tar.gz enigma2-ed40f6f85c9c07c3c1224ae20601082c0309a631.zip | |
some python import cleanups
lesser swig overhead
Diffstat (limited to 'lib/python/swig.h')
| -rw-r--r-- | lib/python/swig.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/lib/python/swig.h b/lib/python/swig.h index c094b646..da787eea 100644 --- a/lib/python/swig.h +++ b/lib/python/swig.h @@ -2,29 +2,27 @@ #define __lib_python_swig_h #ifdef SWIG -#define TEMPLATE_TYPEDEF(x, y) \ -%template(y) x; \ -typedef x y; \ -%typemap_output_ptr(x); -#define SWIG_ALLOW_OUTPUT_SIMPLE(x) %typemap_output_simple(x); -#else -#define TEMPLATE_TYPEDEF(x, y) typedef x y -#define SWIG_ALLOW_OUTPUT_SIMPLE(x) -#endif - - -#ifdef SWIG +#define SWIG_IGNORE(x) %ignore x +#define SWIG_EXTEND(x, code) %extend x { code } +#define SWIG_TEMPLATE_TYPEDEF(x, y) %template(y) x; %typemap_output_ptr(x) +#define SWIG_TEMPLATE_TYPEDEF_REPLACE(x, y) %template(y##_REPLACE) x; %typemap_output_ptr(x) +#define SWIG_ALLOW_OUTPUT_SIMPLE(x) %typemap_output_simple(x) #define SWIG_INPUT INPUT #define SWIG_OUTPUT OUTPUT #define SWIG_NAMED_OUTPUT(x) OUTPUT #define SWIG_VOID(x) void #define SWIG_PYOBJECT(x) PyObject* #else +#define SWIG_IGNORE(x) +#define SWIG_EXTEND(x, code) +#define SWIG_TEMPLATE_TYPEDEF(x, y) +#define SWIG_TEMPLATE_TYPEDEF_REPLACE(x, y) +#define SWIG_ALLOW_OUTPUT_SIMPLE(x) #define SWIG_INPUT #define SWIG_OUTPUT #define SWIG_NAMED_OUTPUT(x) x #define SWIG_VOID(x) x #define SWIG_PYOBJECT(x) x -#endif +#endif // SWIG -#endif +#endif // __lib_python_swig_h |
