(h: u32)
| 110 | |
| 111 | pub(super) fn put_val(v: Val) -> u32 { with_runtime(|rt| rt.handles.put(v.0)) } |
| 112 | pub(super) fn get_val(h: u32) -> Option<Val> { with_runtime(|rt| rt.handles.get(h).map(Val)) } |
| 113 | |
| 114 | /* RAII publisher for the live VM pointer. Holding the guard across `run()` ensures a panic or early return cannot leave a stale pointer for later `host_edge_op` calls. */ |
| 115 | pub(super) struct VmGuard; |
no test coverage detected