* }}} */ * toType {{{ */
(n int)
| 1654 | /* toType {{{ */ |
| 1655 | |
| 1656 | func (ls *LState) ToBool(n int) bool { |
| 1657 | return LVAsBool(ls.Get(n)) |
| 1658 | } |
| 1659 | |
| 1660 | func (ls *LState) ToInt(n int) int { |
| 1661 | if lv, ok := ls.Get(n).(LNumber); ok { |
no test coverage detected