(dbg *Debug, no int)
| 1605 | } |
| 1606 | |
| 1607 | func (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 | |
| 1615 | func (ls *LState) SetLocal(dbg *Debug, no int, lv LValue) string { |
| 1616 | frame := dbg.frame |