(&mut self)
| 51 | self.stack.pop().ok_or(cold_runtime("stack underflow")) |
| 52 | } |
| 53 | #[inline] pub(crate) fn pop2(&mut self) -> Result<(Val, Val), VmErr> { |
| 54 | let b = self.pop()?; let a = self.pop()?; Ok((a, b)) |
| 55 | } |
| 56 | #[inline] pub(crate) fn pop_n(&mut self, n: usize) -> Result<Vec<Val>, VmErr> { |
| 57 | let at = self.stack.len().checked_sub(n).ok_or(cold_runtime("stack underflow"))?; |
| 58 | Ok(self.stack.split_off(at)) |
no test coverage detected