MCPcopy Create free account
hub / github.com/DFHack/dfhack / lua_setuservalue

Function lua_setuservalue

depends/lua/src/lapi.c:886–896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884
885
886LUA_API void lua_setuservalue (lua_State *L, int idx) {
887 StkId o;
888 lua_lock(L);
889 api_checknelems(L, 1);
890 o = index2addr(L, idx);
891 api_check(L, ttisfulluserdata(o), "full userdata expected");
892 setuservalue(L, uvalue(o), L->top - 1);
893 luaC_barrier(L, gcvalue(o), L->top - 1);
894 L->top--;
895 lua_unlock(L);
896}
897
898
899/*

Callers 3

NewMethod · 0.85
get_pen_mirrorFunction · 0.85
db_setuservalueFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected