(dbg *Debug, no int, lv LValue)
| 1826 | } |
| 1827 | |
| 1828 | func (ls *LState) SetLocal(dbg *Debug, no int, lv LValue) string { |
| 1829 | frame := dbg.frame |
| 1830 | if name := ls.findLocal(frame, no); len(name) > 0 { |
| 1831 | ls.reg.Set(frame.LocalBase+no-1, lv) |
| 1832 | return name |
| 1833 | } |
| 1834 | return "" |
| 1835 | } |
| 1836 | |
| 1837 | func (ls *LState) GetUpvalue(fn *LFunction, no int) (string, LValue) { |
| 1838 | if fn.IsG { |
no test coverage detected