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

Function lua_upvaluejoin

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

Source from the content-addressed store, hash-verified

1274
1275
1276LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1,
1277 int fidx2, int n2) {
1278 LClosure *f1;
1279 UpVal **up1 = getupvalref(L, fidx1, n1, &f1);
1280 UpVal **up2 = getupvalref(L, fidx2, n2, NULL);
1281 *up1 = *up2;
1282 luaC_objbarrier(L, f1, *up2);
1283}
1284

Callers 1

db_upvaluejoinFunction · 0.70

Calls 1

getupvalrefFunction · 0.70

Tested by

no test coverage detected