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:
William S Fulton 2003-02-09 23:51:55 +00:00
commit 579c2b7d87

View file

@ -348,8 +348,7 @@ $1 = &temp; %}
$1 = *argp; %}
%typemap(out) SWIGTYPE
#ifdef __cplusplus
%{$&1_ltype $1ptr = new $1_ltype(($1_ltype &)$1);
*($&1_ltype*)&$result = $1ptr; %}
%{*($&1_ltype*)&$result = new $1_ltype(($1_ltype &)$1); %}
#else
{
$&1_ltype $1ptr = ($&1_ltype) malloc(sizeof($1_ltype));