(state: &State)
| 13 | store.call_hook(sync_call_hook); |
| 14 | |
| 15 | fn verify(state: &State) { |
| 16 | // Calling this func will switch context into wasm, then back to host: |
| 17 | assert_eq!(state.context, vec![Context::Wasm, Context::Host]); |
| 18 | |
| 19 | assert_eq!(state.calls_into_host, state.returns_from_host + 1); |
| 20 | assert_eq!(state.calls_into_wasm, state.returns_from_wasm + 1); |
| 21 | } |
| 22 | |
| 23 | let mut funcs = Vec::new(); |
| 24 | funcs.push(Func::wrap( |
no outgoing calls