MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_getupvalue

Function lua_getupvalue

Source/Misc/lua/src/lua.c:2906–2917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2904
2905
2906LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
2907const char *name;
2908TValue *val;
2909lua_lock(L);
2910name = aux_upvalue(index2adr(L, funcindex), n, &val);
2911if (name) {
2912setobj2s(L, L->top, val);
2913api_incr_top(L);
2914}
2915lua_unlock(L);
2916return name;
2917}
2918
2919
2920LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) {

Callers 5

is_luabind_functionFunction · 0.85
set_instance_valueFunction · 0.85
get_instance_valueFunction · 0.85
getupvalueFunction · 0.85
auxupvalueFunction · 0.85

Calls 2

aux_upvalueFunction · 0.85
index2adrFunction · 0.85

Tested by

no test coverage detected