| 675 | |
| 676 | |
| 677 | LUA_API void lua_settable (lua_State *L, int idx) { |
| 678 | StkId t; |
| 679 | lua_lock(L); |
| 680 | api_checknelems(L, 2); |
| 681 | t = index2adr(L, idx); |
| 682 | api_checkvalidindex(L, t); |
| 683 | luaV_settable(L, t, L->top - 2, L->top - 1); |
| 684 | L->top -= 2; /* pop index and value */ |
| 685 | lua_unlock(L); |
| 686 | } |
| 687 | |
| 688 | |
| 689 | LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { |
no test coverage detected