mirror of https://github.com/swig/swig
D: Work around nativepointer problem in test-suite/typemap_directorout.i.
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.
This commit is contained in:
parent
5d133ada91
commit
24ceed86b4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue