MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / lua_getupvalue

Function lua_getupvalue

extlibs/lua/src/lapi.c:1339–1350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1337
1338
1339LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
1340 const char *name;
1341 TValue *val = NULL; /* to avoid warnings */
1342 lua_lock(L);
1343 name = aux_upvalue(index2value(L, funcindex), n, &val, NULL);
1344 if (name) {
1345 setobj2s(L, L->top, val);
1346 api_incr_top(L);
1347 }
1348 lua_unlock(L);
1349 return name;
1350}
1351
1352
1353LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) {

Callers 4

auxupvalueFunction · 0.85
checkupvalFunction · 0.85
push_environment_ofFunction · 0.85
getMethod · 0.85

Calls 2

aux_upvalueFunction · 0.85
index2valueFunction · 0.85

Tested by

no test coverage detected