()
| 126 | } |
| 127 | |
| 128 | func (self *ValueStack) Pop() (value types.VmValue, err error) { |
| 129 | length := len(self.data) |
| 130 | if length == 0 { |
| 131 | err = errors.ERR_INDEX_OUT_OF_BOUND |
| 132 | return |
| 133 | } |
| 134 | value = self.data[length-1] |
| 135 | self.data = self.data[:length-1] |
| 136 | return |
| 137 | } |
| 138 | |
| 139 | func (self *ValueStack) PopPair() (left, right types.VmValue, err error) { |
| 140 | right, err = self.Pop() |
no outgoing calls