Fix directorout typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9201 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
24a6facb9a
commit
6a8d2e97f1
1 changed files with 4 additions and 3 deletions
|
|
@ -557,12 +557,13 @@
|
||||||
}
|
}
|
||||||
$1 = *argp; %}
|
$1 = *argp; %}
|
||||||
|
|
||||||
%typemap(directorout) SWIGTYPE
|
%typemap(directorout) SWIGTYPE ($&1_type argp)
|
||||||
%{ if (!$input) {
|
%{ argp = *($&1_ltype*)&$input;
|
||||||
|
if (!argp) {
|
||||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Unexpected null return for type $1_type");
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Unexpected null return for type $1_type");
|
||||||
return $null;
|
return $null;
|
||||||
}
|
}
|
||||||
$1 = *($&1_ltype)&$input; %}
|
$1 = *argp; %}
|
||||||
|
|
||||||
%typemap(out) SWIGTYPE
|
%typemap(out) SWIGTYPE
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue