| 792 | |
| 793 | |
| 794 | LUA_API void lua_rawsetp (lua_State *L, int idx, const void *p) { |
| 795 | StkId t; |
| 796 | TValue k; |
| 797 | lua_lock(L); |
| 798 | api_checknelems(L, 1); |
| 799 | t = index2addr(L, idx); |
| 800 | api_check(L, ttistable(t), "table expected"); |
| 801 | setpvalue(&k, cast(void *, p)); |
| 802 | setobj2t(L, luaH_set(L, hvalue(t), &k), L->top - 1); |
| 803 | luaC_barrierback(L, gcvalue(t), L->top - 1); |
| 804 | L->top--; |
| 805 | lua_unlock(L); |
| 806 | } |
| 807 | |
| 808 | |
| 809 | LUA_API int lua_setmetatable (lua_State *L, int objindex) { |
nothing calls this directly
no test coverage detected