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

Function lua_getupvalue

third-party/lua-5.5.0/src/lapi.c:1394–1405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1392
1393
1394LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
1395 const char *name;
1396 TValue *val = NULL; /* to avoid warnings */
1397 lua_lock(L);
1398 name = aux_upvalue(index2value(L, funcindex), n, &val, NULL);
1399 if (name) {
1400 setobj2s(L, L->top.p, val);
1401 api_incr_top(L);
1402 }
1403 lua_unlock(L);
1404 return name;
1405}
1406
1407
1408LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) {

Callers 3

auxupvalueFunction · 0.70
GetStacksMethod · 0.50
CreateEnvMethod · 0.50

Calls 2

aux_upvalueFunction · 0.70
index2valueFunction · 0.70

Tested by

no test coverage detected