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

Function lua_getuservalue

depends/lua/src/lapi.c:724–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722
723
724LUA_API int lua_getuservalue (lua_State *L, int idx) {
725 StkId o;
726 lua_lock(L);
727 o = index2addr(L, idx);
728 api_check(L, ttisfulluserdata(o), "full userdata expected");
729 getuservalue(L, uvalue(o), L->top);
730 api_incr_top(L);
731 lua_unlock(L);
732 return ttnov(L->top - 1);
733}
734
735
736/*

Callers 9

SetPrivateCallbackMethod · 0.85
dfhack_event_indexFunction · 0.85
dfhack_event_nextFunction · 0.85
dfhack_event_newindexFunction · 0.85
dfhack_event_callFunction · 0.85
InvokeMethod · 0.85
get_pen_mirrorFunction · 0.85
dfhack_pen_newindexFunction · 0.85
db_getuservalueFunction · 0.85

Calls 1

index2addrFunction · 0.85

Tested by

no test coverage detected