| 574 | |
| 575 | |
| 576 | LUA_API void lua_getfield (lua_State *L, int idx, const char *k) { |
| 577 | StkId t; |
| 578 | TValue key; |
| 579 | lua_lock(L); |
| 580 | t = index2adr(L, idx); |
| 581 | api_checkvalidindex(L, t); |
| 582 | setsvalue(L, &key, luaS_new(L, k)); |
| 583 | luaV_gettable(L, t, &key, L->top); |
| 584 | api_incr_top(L); |
| 585 | lua_unlock(L); |
| 586 | } |
| 587 | |
| 588 | |
| 589 | LUA_API void lua_rawget (lua_State *L, int idx) { |
no test coverage detected