| 650 | |
| 651 | |
| 652 | LUA_API void lua_settable (lua_State *L, int idx) { |
| 653 | StkId t; |
| 654 | lua_lock(L); |
| 655 | api_checknelems(L, 2); |
| 656 | t = index2adr(L, idx); |
| 657 | api_checkvalidindex(L, t); |
| 658 | luaV_settable(L, t, L->top - 2, L->top - 1); |
| 659 | L->top -= 2; /* pop index and value */ |
| 660 | lua_unlock(L); |
| 661 | } |
| 662 | |
| 663 | |
| 664 | LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { |
no test coverage detected