MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lua_getupvalue

Function lua_getupvalue

lua/lapi.c:1064–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062
1063
1064LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
1065 const char *name;
1066 TValue *val;
1067 lua_lock(L);
1068 name = aux_upvalue(index2adr(L, funcindex), n, &val);
1069 if (name) {
1070 setobj2s(L, L->top, val);
1071 api_incr_top(L);
1072 }
1073 lua_unlock(L);
1074 return name;
1075}
1076
1077
1078LUA_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