//需要优化,合并为1个call public bool CheckNullInteger(IntPtr L, int pos) { return(LuaDLL.lua_isinteger(L, pos) != 0 || LuaDLL.lua_type(L, pos) == LuaTypes.LUA_TNIL); }
public bool CheckInteger(IntPtr L, int pos) { return(LuaDLL.lua_isinteger(L, pos) != 0); }