MCPcopy Create free account
hub / github.com/Tencent/xLua / luaTableCheck

Method luaTableCheck

Assets/XLua/Src/ObjectCasters.cs:65–68  ·  view source on GitHub ↗
(RealStatePtr L, int idx)

Source from the content-addressed store, hash-verified

63 }
64
65 private bool luaTableCheck(RealStatePtr L, int idx)
66 {
67 return LuaAPI.lua_isnil(L, idx) || LuaAPI.lua_istable(L, idx) || (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA && translator.SafeGetCSObj(L, idx) is LuaTable);
68 }
69
70 private bool numberCheck(RealStatePtr L, int idx)
71 {

Callers

nothing calls this directly

Calls 4

lua_isnilMethod · 0.80
lua_istableMethod · 0.80
lua_typeMethod · 0.80
SafeGetCSObjMethod · 0.80

Tested by

no test coverage detected