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