| 549 | |
| 550 | |
| 551 | LUA_API void lua_getfield (lua_State *L, int idx, const char *k) { |
| 552 | StkId t; |
| 553 | TValue key; |
| 554 | lua_lock(L); |
| 555 | t = index2adr(L, idx); |
| 556 | api_checkvalidindex(L, t); |
| 557 | setsvalue(L, &key, luaS_new(L, k)); |
| 558 | luaV_gettable(L, t, &key, L->top); |
| 559 | api_incr_top(L); |
| 560 | lua_unlock(L); |
| 561 | } |
| 562 | |
| 563 | |
| 564 | LUA_API void lua_rawget (lua_State *L, int idx) { |
no test coverage detected