MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / lua_upvaluejoin

Function lua_upvaluejoin

Plugins/slua_unreal/External/lua/lapi.cpp:1286–1296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

db_upvaluejoinFunction · 0.85

Calls 2

getupvalrefFunction · 0.85
luaC_upvdeccountFunction · 0.85

Tested by

no test coverage detected