MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / lua_upvaluejoin

Function lua_upvaluejoin

3rd/lua-5.4.3/src/lapi.c:1445–1453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1443
1444
1445LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1,
1446 int fidx2, int n2) {
1447 LClosure *f1;
1448 UpVal **up1 = getupvalref(L, fidx1, n1, &f1);
1449 UpVal **up2 = getupvalref(L, fidx2, n2, NULL);
1450 api_check(L, *up1 != NULL && *up2 != NULL, "invalid upvalue index");
1451 *up1 = *up2;
1452 luaC_objbarrier(L, f1, *up1);
1453}
1454
1455

Callers 1

db_upvaluejoinFunction · 0.85

Calls 1

getupvalrefFunction · 0.85

Tested by

no test coverage detected