UpValueJoin makes the n1-th upvalue of the Lua closure at index f1 refer to the n2-th upvalue of the Lua closure at index f2.
(l *State, f1, n1, f2, n2 int)
| 1313 | // UpValueJoin makes the n1-th upvalue of the Lua closure at index f1 refer to |
| 1314 | // the n2-th upvalue of the Lua closure at index f2. |
| 1315 | func UpValueJoin(l *State, f1, n1, f2, n2 int) { |
| 1316 | u1 := l.upValue(f1, n1) |
| 1317 | u2 := l.upValue(f2, n2) |
| 1318 | *u1 = *u2 |
| 1319 | } |
| 1320 | |
| 1321 | // Call calls a function. To do so, use the following protocol: first, the |
| 1322 | // function to be called is pushed onto the stack; then, the arguments to the |