director typemaps added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
61c6a09ff2
commit
3563de51ee
7 changed files with 238 additions and 2 deletions
|
|
@ -73,7 +73,10 @@ There are no char *INPUT typemaps, however you can apply the signed char * typem
|
|||
%typemap(in) TYPE *INPUT, TYPE &INPUT
|
||||
%{ $1 = ($1_ltype)&$input; %}
|
||||
|
||||
%typemap(directorin,descriptor=JNIDESC) CYTPE &INPUT
|
||||
%typemap(directorout) TYPE *INPUT, TYPE &INPUT
|
||||
%{ $1 = ($1_ltype)&$input; %}
|
||||
|
||||
%typemap(directorin,descriptor=JNIDESC) TYPE &INPUT
|
||||
%{ *(($&1_ltype) $input) = (JNITYPE *) &$1; %}
|
||||
|
||||
%typemap(directorin,descriptor=JNIDESC) TYPE *INPUT
|
||||
|
|
@ -216,6 +219,11 @@ There are no char *OUTPUT typemaps, however you can apply the signed char * type
|
|||
$1 = &temp;
|
||||
}
|
||||
|
||||
%typemap(directorout) TYPE *OUTPUT($*1_ltype temp), TYPE &OUTPUT($*1_ltype temp)
|
||||
{
|
||||
#error "Need to provide OUTPUT directorout typemap
|
||||
}
|
||||
|
||||
%typemap(directorin,descriptor=JNIDESC) TYPE &OUTPUT
|
||||
%{ *(($&1_ltype) $input = &$1; %}
|
||||
|
||||
|
|
@ -352,6 +360,10 @@ There are no char *INOUT typemaps, however you can apply the signed char * typem
|
|||
$1 = ($1_ltype) JCALL2(Get##JAVATYPE##ArrayElements, jenv, $input, 0);
|
||||
}
|
||||
|
||||
%typemap(directorout) TYPE *INOUT, TYPE &INOUT {
|
||||
#error "Need to provide INOUT directorout typemap
|
||||
}
|
||||
|
||||
%typemap(directorin,descriptor=JNIDESC) TYPE &INOUT
|
||||
%{ *(($&1_ltype)&$input) = &$1; %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue