| 601 | |
| 602 | |
| 603 | LUA_API int lua_getfield (lua_State *L, int idx, const char *k) { |
| 604 | StkId t; |
| 605 | lua_lock(L); |
| 606 | t = index2addr(L, idx); |
| 607 | setsvalue2s(L, L->top, luaS_new(L, k)); |
| 608 | api_incr_top(L); |
| 609 | luaV_gettable(L, t, L->top - 1, L->top - 1); |
| 610 | lua_unlock(L); |
| 611 | return ttnov(L->top - 1); |
| 612 | } |
| 613 | |
| 614 | |
| 615 | LUA_API int lua_geti (lua_State *L, int idx, lua_Integer n) { |
no test coverage detected