We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
错误: c#:
public static void aaa(int? a, int? b, int? c, int? d) { Debug.log(a); Debug.log(b); Debug.log(c); Debug.log(d); }
lua:
aaa(1, 2, 3, nil)
如果最后一个参数为nil,a,b,c都为空
改法:
ObjectCast genNullableCaster(ObjectCast oc) { return (RealStatePtr L, int idx, object target) => { if (LuaAPI.lua_isnil(L, -1)) { return null; } else { return oc(L, idx, target); } }; }
将-1改为idx
The text was updated successfully, but these errors were encountered:
04e38ac
Merge remote-tracking branch 'upstream/master'
a17fd1a
* upstream/master: genNullableCaster 最后一个参数是nil,其他参数全是nil (fix Tencent#527) 去掉多余的包装接口,加入宏用以开关 (Tencent#522)
genNullableCaster 最后一个参数是nil,其他参数全是nil (fix Tencent#527)
daa8cc5
No branches or pull requests
错误:
c#:
lua:
aaa(1, 2, 3, nil)
如果最后一个参数为nil,a,b,c都为空
改法:
将-1改为idx
The text was updated successfully, but these errors were encountered: