Removed intermediate variable for SWIGTYPE out typemap as suggested by Heiner Petith
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4278 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ee16bf7509
commit
579c2b7d87
1 changed files with 1 additions and 2 deletions
|
|
@ -348,8 +348,7 @@ $1 = &temp; %}
|
||||||
$1 = *argp; %}
|
$1 = *argp; %}
|
||||||
%typemap(out) SWIGTYPE
|
%typemap(out) SWIGTYPE
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
%{$&1_ltype $1ptr = new $1_ltype(($1_ltype &)$1);
|
%{*($&1_ltype*)&$result = new $1_ltype(($1_ltype &)$1); %}
|
||||||
*($&1_ltype*)&$result = $1ptr; %}
|
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
$&1_ltype $1ptr = ($&1_ltype) malloc(sizeof($1_ltype));
|
$&1_ltype $1ptr = ($&1_ltype) malloc(sizeof($1_ltype));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue