| 2391 | |
| 2392 | |
| 2393 | LUA_API void lua_getfield (lua_State *L, int idx, const char *k) { |
| 2394 | StkId t; |
| 2395 | TValue key; |
| 2396 | lua_lock(L); |
| 2397 | t = index2adr(L, idx); |
| 2398 | api_checkvalidindex(L, t); |
| 2399 | setsvalue(L, &key, luaS_new(L, k)); |
| 2400 | luaV_gettable(L, t, &key, L->top); |
| 2401 | api_incr_top(L); |
| 2402 | lua_unlock(L); |
| 2403 | } |
| 2404 | |
| 2405 | |
| 2406 | LUA_API void lua_rawget (lua_State *L, int idx) { |
no test coverage detected