python object refcount debugging code second try
[vuplus_dvbapp] / lib / python / swig.h
index ae0bfd0..c094b64 100644 (file)
@@ -6,18 +6,25 @@
 %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_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_INPUT
 #define SWIG_OUTPUT
+#define SWIG_NAMED_OUTPUT(x) x
 #define SWIG_VOID(x) x
+#define SWIG_PYOBJECT(x) x
 #endif
 
 #endif