(n int, typ LValueType)
| 106 | } |
| 107 | |
| 108 | func (ls *LState) CheckType(n int, typ LValueType) { |
| 109 | v := ls.Get(n) |
| 110 | if v.Type() != typ { |
| 111 | ls.TypeError(n, typ) |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | func (ls *LState) CheckTypes(n int, typs ...LValueType) { |
| 116 | vt := ls.Get(n).Type() |