MCPcopy Index your code
hub / github.com/yuin/gopher-lua / SetUpvalue

Method SetUpvalue

_state.go:1636–1647  ·  view source on GitHub ↗
(fn *LFunction, no int, lv LValue)

Source from the content-addressed store, hash-verified

1634}
1635
1636func (ls *LState) SetUpvalue(fn *LFunction, no int, lv LValue) string {
1637 if fn.IsG {
1638 return ""
1639 }
1640
1641 no--
1642 if no >= 0 && no < len(fn.Upvalues) {
1643 fn.Upvalues[no].SetValue(lv)
1644 return fn.Proto.DbgUpvalues[no]
1645 }
1646 return ""
1647}
1648
1649/* }}} */
1650

Callers

nothing calls this directly

Calls 1

SetValueMethod · 0.80

Tested by

no test coverage detected