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