(fn *LFunction, no int)
| 1835 | } |
| 1836 | |
| 1837 | func (ls *LState) GetUpvalue(fn *LFunction, no int) (string, LValue) { |
| 1838 | if fn.IsG { |
| 1839 | return "", LNil |
| 1840 | } |
| 1841 | |
| 1842 | no-- |
| 1843 | if no >= 0 && no < len(fn.Upvalues) { |
| 1844 | return fn.Proto.DbgUpvalues[no], fn.Upvalues[no].Value() |
| 1845 | } |
| 1846 | return "", LNil |
| 1847 | } |
| 1848 | |
| 1849 | func (ls *LState) SetUpvalue(fn *LFunction, no int, lv LValue) string { |
| 1850 | if fn.IsG { |
no test coverage detected