From 24ceed86b49665cfa4bb7051ff103038d236e64b Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Fri, 31 Oct 2014 20:24:16 +0100 Subject: [PATCH] D: Work around nativepointer problem in test-suite/typemap_directorout.i. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just "%typemap(ddirectorout) MyType &USEME = SWIGTYPE &;" does not inherit the antivepointer attribute from the SWIGTYPE & case, but the other typemaps that are not overridden (dout/…). Thus, some of the emitted code used native pointers, and some SWIGTYPE_p_int. --- Examples/test-suite/typemap_directorout.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/test-suite/typemap_directorout.i b/Examples/test-suite/typemap_directorout.i index 4a85bd47c..79d0f8d94 100644 --- a/Examples/test-suite/typemap_directorout.i +++ b/Examples/test-suite/typemap_directorout.i @@ -23,7 +23,7 @@ #ifdef SWIGD %typemap(ddirectorout) MyType & %{ WILL_NOT_COMPILE %} %typemap(ddirectorout) MyType &USEME = SWIGTYPE &; -%typemap(ddirectorout) MyType &Class1::foo2, MyType &foo1 %{ /* special start */ $typemap(ddirectorout, MyType &USEME) /* special end */ %} +%typemap(ddirectorout, nativepointer="cast(void*)$dcall") MyType &Class1::foo2, MyType &foo1 %{ /* special start */ $typemap(ddirectorout, MyType &USEME) /* special end */ %} #endif #ifdef SWIGJAVA