| 705 | |
| 706 | |
| 707 | LUA_API int lua_gettable (lua_State *L, int idx) { |
| 708 | lu_byte tag; |
| 709 | TValue *t; |
| 710 | lua_lock(L); |
| 711 | api_checkpop(L, 1); |
| 712 | t = index2value(L, idx); |
| 713 | luaV_fastget(t, s2v(L->top.p - 1), s2v(L->top.p - 1), luaH_get, tag); |
| 714 | if (tagisempty(tag)) |
| 715 | tag = luaV_finishget(L, t, s2v(L->top.p - 1), L->top.p - 1, tag); |
| 716 | lua_unlock(L); |
| 717 | return novariant(tag); |
| 718 | } |
| 719 | |
| 720 | |
| 721 | LUA_API int lua_getfield (lua_State *L, int idx, const char *k) { |
no test coverage detected