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

Method GetLocal

state.go:1820–1826  ·  view source on GitHub ↗
(dbg *Debug, no int)

Source from the content-addressed store, hash-verified

1818}
1819
1820func (ls *LState) GetLocal(dbg *Debug, no int) (string, LValue) {
1821 frame := dbg.frame
1822 if name := ls.findLocal(frame, no); len(name) > 0 {
1823 return name, ls.reg.Get(frame.LocalBase + no - 1)
1824 }
1825 return "", LNil
1826}
1827
1828func (ls *LState) SetLocal(dbg *Debug, no int, lv LValue) string {
1829 frame := dbg.frame

Callers 1

debugGetLocalFunction · 0.45

Calls 2

findLocalMethod · 0.95
GetMethod · 0.45

Tested by

no test coverage detected