Fix for directors - where a class returned by value
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8253 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e5d5b16033
commit
35526f18d2
1 changed files with 4 additions and 5 deletions
|
|
@ -583,13 +583,12 @@
|
||||||
}
|
}
|
||||||
$1 = *argp; %}
|
$1 = *argp; %}
|
||||||
|
|
||||||
%typemap(directorout) SWIGTYPE ($1_ltype argp)
|
%typemap(directorout) SWIGTYPE
|
||||||
%{ argp = *($&1_ltype)(void *)&$input;
|
%{ if (!$input) {
|
||||||
if (!argp) {
|
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Unexpected null return for type $1_type");
|
||||||
SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null $1_type");
|
|
||||||
return $null;
|
return $null;
|
||||||
}
|
}
|
||||||
$1 = argp; %}
|
$1 = *($&1_ltype)(void *)&$input; %}
|
||||||
|
|
||||||
%typemap(out) SWIGTYPE
|
%typemap(out) SWIGTYPE
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue