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

Method GetLocal

_state.go:1607–1613  ·  view source on GitHub ↗
(dbg *Debug, no int)

Source from the content-addressed store, hash-verified

1605}
1606
1607func (ls *LState) GetLocal(dbg *Debug, no int) (string, LValue) {
1608 frame := dbg.frame
1609 if name := ls.findLocal(frame, no); len(name) > 0 {
1610 return name, ls.reg.Get(frame.LocalBase + no - 1)
1611 }
1612 return "", LNil
1613}
1614
1615func (ls *LState) SetLocal(dbg *Debug, no int, lv LValue) string {
1616 frame := dbg.frame

Callers

nothing calls this directly

Calls 2

findLocalMethod · 0.95
GetMethod · 0.45

Tested by

no test coverage detected