MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / lua_getupvalue

Function lua_getupvalue

Dependencies/lua/src/lapi.c:1384–1395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1382
1383
1384LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
1385 const char *name;
1386 TValue *val = NULL; /* to avoid warnings */
1387 lua_lock(L);
1388 name = aux_upvalue(index2value(L, funcindex), n, &val, NULL);
1389 if (name) {
1390 setobj2s(L, L->top.p, val);
1391 api_incr_top(L);
1392 }
1393 lua_unlock(L);
1394 return name;
1395}
1396
1397
1398LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) {

Callers 7

check_function_pointerFunction · 0.85
push_environment_ofFunction · 0.85
set_onMethod · 0.85
getMethod · 0.85
upvalueFunction · 0.85
auxupvalueFunction · 0.85

Calls 2

aux_upvalueFunction · 0.85
index2valueFunction · 0.85

Tested by 1

upvalueFunction · 0.68