X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/2a6cdce89409dc0275e23523c3807972a82f2cf7..d169bb4690ed7f65fe9de5327bf5f4908552a262:/lib/python/swig.h diff --git a/lib/python/swig.h b/lib/python/swig.h index 23ce9aad..370c6ab5 100644 --- a/lib/python/swig.h +++ b/lib/python/swig.h @@ -2,25 +2,25 @@ #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_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_ALLOW_OUTPUT_SIMPLE(x) #define SWIG_INPUT #define SWIG_OUTPUT +#define SWIG_NAMED_OUTPUT(x) x #define SWIG_VOID(x) x -#endif +#define SWIG_PYOBJECT(x) x +#endif // SWIG -#endif +#endif // __lib_python_swig_h