| 919 | |
| 920 | |
| 921 | LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) { |
| 922 | Table *t; |
| 923 | lua_lock(L); |
| 924 | api_checknelems(L, 1); |
| 925 | t = gettable(L, idx); |
| 926 | luaH_setint(L, t, n, s2v(L->top.p - 1)); |
| 927 | luaC_barrierback(L, obj2gco(t), s2v(L->top.p - 1)); |
| 928 | L->top.p--; |
| 929 | lua_unlock(L); |
| 930 | } |
| 931 | |
| 932 | |
| 933 | LUA_API int lua_setmetatable (lua_State *L, int objindex) { |
no test coverage detected