| 1284 | |
| 1285 | |
| 1286 | LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1, |
| 1287 | int fidx2, int n2) { |
| 1288 | UpVal **up1 = getupvalref(L, fidx1, n1); |
| 1289 | UpVal **up2 = getupvalref(L, fidx2, n2); |
| 1290 | if (*up1 == *up2) |
| 1291 | return; |
| 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 |
no test coverage detected