MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_getupvalue

Function lua_getupvalue

third-party/lua-5.2.4/src/lapi.c:1213–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1211
1212
1213LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
1214 const char *name;
1215 TValue *val = NULL; /* to avoid warnings */
1216 lua_lock(L);
1217 name = aux_upvalue(index2addr(L, funcindex), n, &val, NULL);
1218 if (name) {
1219 setobj2s(L, L->top, val);
1220 api_incr_top(L);
1221 }
1222 lua_unlock(L);
1223 return name;
1224}
1225
1226
1227LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) {

Callers 1

auxupvalueFunction · 0.70

Calls 2

aux_upvalueFunction · 0.70
index2addrFunction · 0.70

Tested by

no test coverage detected