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

Function lua_upvaluejoin

third-party/lua-5.3.5/src/lapi.c:1287–1297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1285
1286
1287LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1,
1288 int fidx2, int n2) {
1289 LClosure *f1;
1290 UpVal **up1 = getupvalref(L, fidx1, n1, &f1);
1291 UpVal **up2 = getupvalref(L, fidx2, n2, NULL);
1292 luaC_upvdeccount(L, *up1);
1293 *up1 = *up2;
1294 (*up1)->refcount++;
1295 if (upisopen(*up1)) (*up1)->u.open.touched = 1;
1296 luaC_upvalbarrier(L, *up1);
1297}
1298
1299

Callers 1

db_upvaluejoinFunction · 0.70

Calls 2

luaC_upvdeccountFunction · 0.85
getupvalrefFunction · 0.70

Tested by

no test coverage detected