MCPcopy Create free account
hub / github.com/yuin/gopher-lua / SetLocal

Method SetLocal

_state.go:1615–1622  ·  view source on GitHub ↗
(dbg *Debug, no int, lv LValue)

Source from the content-addressed store, hash-verified

1613}
1614
1615func (ls *LState) SetLocal(dbg *Debug, no int, lv LValue) string {
1616 frame := dbg.frame
1617 if name := ls.findLocal(frame, no); len(name) > 0 {
1618 ls.reg.Set(frame.LocalBase+no-1, lv)
1619 return name
1620 }
1621 return ""
1622}
1623
1624func (ls *LState) GetUpvalue(fn *LFunction, no int) (string, LValue) {
1625 if fn.IsG {

Callers

nothing calls this directly

Calls 2

findLocalMethod · 0.95
SetMethod · 0.45

Tested by

no test coverage detected