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:
William S Fulton 2008-02-03 21:17:08 +00:00
commit 71c669def4

View file

@ -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