(n int)
| 1477 | } |
| 1478 | |
| 1479 | func (ls *LState) ToTable(n int) *LTable { |
| 1480 | if lv, ok := ls.Get(n).(*LTable); ok { |
| 1481 | return lv |
| 1482 | } |
| 1483 | return nil |
| 1484 | } |
| 1485 | |
| 1486 | func (ls *LState) ToFunction(n int) *LFunction { |
| 1487 | if lv, ok := ls.Get(n).(*LFunction); ok { |