| 542 | |
| 543 | |
| 544 | LUA_API void lua_getfield (lua_State *L, int idx, const char *k) { |
| 545 | StkId t; |
| 546 | TValue key; |
| 547 | lua_lock(L); |
| 548 | t = index2adr(L, idx); |
| 549 | api_checkvalidindex(L, t); |
| 550 | setsvalue(L, &key, luaS_new(L, k)); |
| 551 | luaV_gettable(L, t, &key, L->top); |
| 552 | api_incr_top(L); |
| 553 | lua_unlock(L); |
| 554 | } |
| 555 | |
| 556 | |
| 557 | LUA_API void lua_rawget (lua_State *L, int idx) { |
no test coverage detected