X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/779cb6e326391280631d0b486957d5e576eb23ea..1e1c01fece5a4a86a762af265e382da5dbb2d8cb:/lib/python/swig.h?ds=sidebyside diff --git a/lib/python/swig.h b/lib/python/swig.h index b5cb77af..c9be9695 100644 --- a/lib/python/swig.h +++ b/lib/python/swig.h @@ -4,17 +4,25 @@ #ifdef SWIG #define TEMPLATE_TYPEDEF(x, y) \ %template(y) x; \ -typedef x y +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_INPUT INPUT #define SWIG_OUTPUT OUTPUT +#define SWIG_NAMED_OUTPUT(x) OUTPUT +#define SWIG_VOID(x) void #else #define SWIG_INPUT #define SWIG_OUTPUT +#define SWIG_NAMED_OUTPUT(x) x +#define SWIG_VOID(x) x #endif #endif