(n int)
| 1690 | } |
| 1691 | |
| 1692 | func (ls *LState) ToTable(n int) *LTable { |
| 1693 | if lv, ok := ls.Get(n).(*LTable); ok { |
| 1694 | return lv |
| 1695 | } |
| 1696 | return nil |
| 1697 | } |
| 1698 | |
| 1699 | func (ls *LState) ToFunction(n int) *LFunction { |
| 1700 | if lv, ok := ls.Get(n).(*LFunction); ok { |