aboutsummaryrefslogtreecommitdiff
path: root/lib/python/swig.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/swig.h')
-rw-r--r--lib/python/swig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/swig.h b/lib/python/swig.h
index ae0bfd07..23ce9aad 100644
--- a/lib/python/swig.h
+++ b/lib/python/swig.h
@@ -6,10 +6,13 @@
%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