| 1285 | |
| 1286 | |
| 1287 | LUA_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 |
no test coverage detected