[lua] fixed bug in template classes which cases template_default2 and template_specialization_defarg to fail.
Added several warning filters into the overload's test cases. Added runtime tests for several codes. You can now make check-lua-test-suite with no errors and only a few warnings. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
70759b3e16
commit
0c2bbb25a3
19 changed files with 368 additions and 15 deletions
|
|
@ -221,11 +221,8 @@ cast it to that & accept the loss of precision.
|
|||
An alternative solution would be a long long struct or class
|
||||
with the relevant operators.
|
||||
*/
|
||||
%typemap(in,checkfn="lua_isnumber") long long, unsigned long long, signed long long
|
||||
%{$1 = ($type)lua_tonumber(L, $input);%}
|
||||
|
||||
%typemap(out) long long, unsigned long long, signed long long
|
||||
%{ lua_pushnumber(L, (lua_Number) $1); SWIG_arg++;%}
|
||||
%apply long {long long, signed long long, unsigned long long};
|
||||
%apply const long& {const long long&, const signed long long&, const unsigned long long&};
|
||||
|
||||
/* It is possible to also pass a lua_State* into a function, so
|
||||
void fn(int a, float b, lua_State* s) is wrappable as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue