(dbg *Debug, no int)
| 1818 | } |
| 1819 | |
| 1820 | func (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 | |
| 1828 | func (ls *LState) SetLocal(dbg *Debug, no int, lv LValue) string { |
| 1829 | frame := dbg.frame |
no test coverage detected