MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lua_getupvalue

Function lua_getupvalue

deps/lua/src/lapi.c:1057–1068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1055
1056
1057LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
1058 const char *name;
1059 TValue *val;
1060 lua_lock(L);
1061 name = aux_upvalue(index2adr(L, funcindex), n, &val);
1062 if (name) {
1063 setobj2s(L, L->top, val);
1064 api_incr_top(L);
1065 }
1066 lua_unlock(L);
1067 return name;
1068}
1069
1070
1071LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) {

Callers 1

auxupvalueFunction · 0.85

Calls 2

aux_upvalueFunction · 0.85
index2adrFunction · 0.85

Tested by

no test coverage detected