| 745 | |
| 746 | |
| 747 | LUA_API void lua_settable (lua_State *L, int idx) { |
| 748 | StkId t; |
| 749 | lua_lock(L); |
| 750 | api_checknelems(L, 2); |
| 751 | t = index2addr(L, idx); |
| 752 | luaV_settable(L, t, L->top - 2, L->top - 1); |
| 753 | L->top -= 2; /* pop index and value */ |
| 754 | lua_unlock(L); |
| 755 | } |
| 756 | |
| 757 | |
| 758 | LUA_API void lua_setfield (lua_State *L, int idx, const char *k) { |
no test coverage detected