MCPcopy Index your code
hub / github.com/Shopify/go-lua / UpValueJoin

Function UpValueJoin

lua.go:1315–1319  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
1315func 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

Callers 1

debug.goFile · 0.85

Calls 1

upValueMethod · 0.65

Tested by

no test coverage detected