From 2a6cdce89409dc0275e23523c3807972a82f2cf7 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 29 Sep 2005 22:07:36 +0000 Subject: swig: some more simplifying magic --- lib/python/swig.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/python/swig.h') 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 -- cgit v1.2.3