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

Method luaFunctionCheck

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

Source from the content-addressed store, hash-verified

103 }
104
105 private bool luaFunctionCheck(RealStatePtr L, int idx)
106 {
107 return LuaAPI.lua_isnil(L, idx) || LuaAPI.lua_isfunction(L, idx) || (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA && translator.SafeGetCSObj(L, idx) is LuaFunction);
108 }
109
110 private bool intptrCheck(RealStatePtr L, int idx)
111 {

Callers

nothing calls this directly

Calls 4

lua_isnilMethod · 0.80
lua_isfunctionMethod · 0.80
lua_typeMethod · 0.80
SafeGetCSObjMethod · 0.80

Tested by

no test coverage detected