| 643 | |
| 644 | |
| 645 | LUA_API void lua_settable (lua_State *L, int idx) { |
| 646 | StkId t; |
| 647 | lua_lock(L); |
| 648 | api_checknelems(L, 2); |
| 649 | t = index2adr(L, idx); |
| 650 | api_checkvalidindex(L, t); |
| 651 | luaV_settable(L, t, L->top - 2, L->top - 1); |
| 652 | L->top -= 2; /* pop index and value */ |
| 653 | lua_unlock(L); |
| 654 | } |
| 655 | |
| 656 | |
| 657 | LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { |
no test coverage detected