Add in array reference typemaps - the recently introduced pointer reference typemaps broke array references.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8119 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
53cf7fd217
commit
d57e63e2a5
2 changed files with 6 additions and 0 deletions
|
|
@ -546,6 +546,9 @@ $1 = &temp; %}
|
||||||
%typemap(out) SWIGTYPE *&
|
%typemap(out) SWIGTYPE *&
|
||||||
%{ $result = (void *)*$1; %}
|
%{ $result = (void *)*$1; %}
|
||||||
|
|
||||||
|
/* Array reference typemaps */
|
||||||
|
%apply SWIGTYPE & { SWIGTYPE ((&)[ANY]) }
|
||||||
|
|
||||||
/* Typemaps used for the generation of proxy and type wrapper class code */
|
/* Typemaps used for the generation of proxy and type wrapper class code */
|
||||||
%typemap(csbase) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) ""
|
%typemap(csbase) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) ""
|
||||||
%typemap(csclassmodifiers) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) "public class"
|
%typemap(csclassmodifiers) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) "public class"
|
||||||
|
|
|
||||||
|
|
@ -1051,6 +1051,9 @@
|
||||||
%typemap(out) SWIGTYPE *&
|
%typemap(out) SWIGTYPE *&
|
||||||
%{ *($1_ltype)(void *)&$result = *$1; %}
|
%{ *($1_ltype)(void *)&$result = *$1; %}
|
||||||
|
|
||||||
|
/* Array reference typemaps */
|
||||||
|
%apply SWIGTYPE & { SWIGTYPE ((&)[ANY]) }
|
||||||
|
|
||||||
/* Typemaps used for the generation of proxy and type wrapper class code */
|
/* Typemaps used for the generation of proxy and type wrapper class code */
|
||||||
%typemap(javabase) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) ""
|
%typemap(javabase) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) ""
|
||||||
%typemap(javaclassmodifiers) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) "public class"
|
%typemap(javaclassmodifiers) SWIGTYPE, SWIGTYPE *, SWIGTYPE &, SWIGTYPE [], SWIGTYPE (CLASS::*) "public class"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue