MCPcopy Create free account
hub / github.com/PLSysSec/wave / wasm2c_marshal

Function wasm2c_marshal

src/writeback.rs:8–13  ·  view source on GitHub ↗
(res: RuntimeResult<T>)

Source from the content-addressed store, hash-verified

6
7#[with_ghost_var(trace: &mut Trace)]
8pub fn wasm2c_marshal<T>(res: RuntimeResult<T>) -> u32 {
9 match res {
10 Ok(r) => 0,
11 Err(err) => err.into(),
12 }
13}
14
15#[with_ghost_var(trace: &mut Trace)]
16#[requires(ctx_safe(ctx))]

Calls

no outgoing calls

Tested by

no test coverage detected