(RealStatePtr L, int idx, object target)
| 391 | } |
| 392 | |
| 393 | private object getLuaTable(RealStatePtr L, int idx, object target) |
| 394 | { |
| 395 | if (LuaAPI.lua_type(L, idx) == LuaTypes.LUA_TUSERDATA) |
| 396 | { |
| 397 | object obj = translator.SafeGetCSObj(L, idx); |
| 398 | return (obj != null && obj is LuaTable) ? obj : null; |
| 399 | } |
| 400 | if (!LuaAPI.lua_istable(L, idx)) |
| 401 | { |
| 402 | return null; |
| 403 | } |
| 404 | LuaAPI.lua_pushvalue(L, idx); |
| 405 | return new LuaTable(LuaAPI.luaL_ref(L), translator.luaEnv); |
| 406 | } |
| 407 | |
| 408 | private object getLuaFunction(RealStatePtr L, int idx, object target) |
| 409 | { |
nothing calls this directly
no test coverage detected