MCPcopy Create free account
hub / github.com/danomatika/ofxLua / lua_upvaluejoin

Function lua_upvaluejoin

libs/lua/lapi.c:1453–1461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1451
1452
1453LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1,
1454 int fidx2, int n2) {
1455 LClosure *f1;
1456 UpVal **up1 = getupvalref(L, fidx1, n1, &f1);
1457 UpVal **up2 = getupvalref(L, fidx2, n2, NULL);
1458 api_check(L, *up1 != NULL && *up2 != NULL, "invalid upvalue index");
1459 *up1 = *up2;
1460 luaC_objbarrier(L, f1, *up1);
1461}
1462
1463

Callers 1

db_upvaluejoinFunction · 0.85

Calls 1

getupvalrefFunction · 0.85

Tested by

no test coverage detected