fix visual c++ warnings
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10231 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
df83cef573
commit
71c669def4
1 changed files with 3 additions and 2 deletions
|
|
@ -77,7 +77,8 @@
|
|||
|
||||
// for const bool&, SWIG treats this as a const bool* so we must dereference it
|
||||
%typemap(in,checkfn="lua_isboolean") const bool& (bool temp)
|
||||
%{temp=(bool)lua_toboolean(L, $input); $1=&temp;%}
|
||||
%{temp=lua_toboolean(L, $input) ? true : false;
|
||||
$1=&temp;%}
|
||||
|
||||
%typemap(out) const bool&
|
||||
%{ lua_pushboolean(L,(int)*$1); SWIG_arg++;%}
|
||||
|
|
@ -349,4 +350,4 @@ typedef struct{} LANGUAGE_OBJ;
|
|||
}
|
||||
%}
|
||||
|
||||
#endif // __cplusplus
|
||||
#endif // __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue