(t types.VmValue)
| 93 | } |
| 94 | |
| 95 | func (self *ValueStack) Push(t types.VmValue) error { |
| 96 | if int64(len(self.data)) >= self.limit { |
| 97 | return errors.ERR_OVER_STACK_LEN |
| 98 | } |
| 99 | self.data = append(self.data, t) |
| 100 | return nil |
| 101 | } |
| 102 | |
| 103 | func (self *ValueStack) PushMany(vals ...types.VmValue) error { |
| 104 | if int64(len(self.data)+len(vals)) > self.limit { |
no outgoing calls