const enum SWIGTYPE& fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
939a514547
commit
ccb0e97955
1 changed files with 3 additions and 4 deletions
|
|
@ -11,10 +11,9 @@
|
|||
|
||||
|
||||
%typemap(directorout) enum SWIGTYPE "$result = ($1_ltype) NUM2INT($input);";
|
||||
%typemap(directorout) const enum SWIGTYPE & ($*1_ltype temp)
|
||||
"temp = ($*1_ltype) NUM2INT($input);
|
||||
$result = &temp;";
|
||||
|
||||
%typemap(directorout,warning=SWIG_WARN_TYPEMAP_THREAD_UNSAFE) const enum SWIGTYPE &
|
||||
%{ static $*1_ltype temp = ($*1_ltype) NUM2INT($input);
|
||||
$result = &temp; %}
|
||||
|
||||
/* --- Output typemaps --- */
|
||||
%typemap(out) enum SWIGTYPE "$result = INT2NUM($1);";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue