PHP: Add directorout typemap for primitive type const refs
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11559 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
84215444eb
commit
6f80e2f7a6
1 changed files with 6 additions and 1 deletions
|
|
@ -42,10 +42,15 @@
|
||||||
CONVERT_IN(temp,$*1_ltype,$input);
|
CONVERT_IN(temp,$*1_ltype,$input);
|
||||||
$1 = &temp;
|
$1 = &temp;
|
||||||
%}
|
%}
|
||||||
%typemap(directorout) TYPE, const TYPE &
|
%typemap(directorout) TYPE
|
||||||
%{
|
%{
|
||||||
CONVERT_IN($result,$1_ltype,$input);
|
CONVERT_IN($result,$1_ltype,$input);
|
||||||
%}
|
%}
|
||||||
|
%typemap(directorout) const TYPE & ($*1_ltype temp)
|
||||||
|
%{
|
||||||
|
CONVERT_IN(temp,$*1_ltype,$input);
|
||||||
|
$result = &temp;
|
||||||
|
%}
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
%fragment("t_output_helper","header") %{
|
%fragment("t_output_helper","header") %{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue