| 766 | |
| 767 | |
| 768 | LUA_API void lua_settable(lua_State *L, int idx) { |
| 769 | StkId t; |
| 770 | lua_lock(L); |
| 771 | api_checknelems(L, 2); |
| 772 | t = index2addr(L, idx); |
| 773 | luaV_settable(L, t, L->top - 2, L->top - 1); |
| 774 | L->top -= 2; /* pop index and value */ |
| 775 | lua_unlock(L); |
| 776 | } |
| 777 | |
| 778 | |
| 779 | LUA_API void lua_setfield(lua_State *L, int idx, const char *k) { |
no test coverage detected