Method
SetLocal
(dbg *Debug, no int, lv LValue)
Source from the content-addressed store, hash-verified
| 1613 | } |
| 1614 | |
| 1615 | func (ls *LState) SetLocal(dbg *Debug, no int, lv LValue) string { |
| 1616 | frame := dbg.frame |
| 1617 | if name := ls.findLocal(frame, no); len(name) > 0 { |
| 1618 | ls.reg.Set(frame.LocalBase+no-1, lv) |
| 1619 | return name |
| 1620 | } |
| 1621 | return "" |
| 1622 | } |
| 1623 | |
| 1624 | func (ls *LState) GetUpvalue(fn *LFunction, no int) (string, LValue) { |
| 1625 | if fn.IsG { |
Callers
nothing calls this directly
Tested by
no test coverage detected