`with_vm` that errors when called outside run(). */
(err: &'static str, f: impl FnOnce(&mut VM<'static>) -> Result<Val, VmErr>)
| 159 | |
| 160 | /* `with_vm` that errors when called outside run(). */ |
| 161 | pub(super) fn in_vm(err: &'static str, f: impl FnOnce(&mut VM<'static>) -> Result<Val, VmErr>) -> Result<Val, VmErr> { |
| 162 | with_vm(f).ok_or(VmErr::Runtime(err))? |
| 163 | } |
| 164 | |
| 165 | pub(super) unsafe fn write_out(s: &str) -> usize { |
| 166 | let b = s.as_bytes(); |
no test coverage detected