Home
last modified time | relevance | path

Searched refs:hello_func (Results 1 – 6 of 6) sorted by relevance

/wasmtime-44.0.1/examples/
H A Dthreads.cc52 Func hello_func = Func::wrap(store, []() { in run_worker() local
57 auto instance_res = Instance::create(store, module, {hello_func}); in run_worker()
78 Func hello_func = Func::wrap(store, []() { in run_worker() local
83 Instance instance = Instance::create(store, module, {hello_func}).unwrap(); in run_worker()
H A Dhello.rs40 let hello_func = Func::wrap(&mut store, |mut caller: Caller<'_, MyState>| { in main() localVariable
50 let imports = [hello_func.into()]; in main()
H A Dserialize.rs41 let hello_func = Func::wrap(&mut store, || { in deserialize() localVariable
50 let imports = [hello_func.into()]; in deserialize()
H A Dserialize.cc56 Func hello_func = Func::wrap(store, []() { in deserialize() local
62 Instance instance = Instance::create(store, module, {hello_func}).unwrap(); in deserialize()
/wasmtime-44.0.1/tests/all/
H A Dcoredump.rs21 let hello_func = Func::new(&mut store, hello_type, |_, _, _| bail!("test 123")); in coredump_attached_to_error() localVariable
23 let instance = Instance::new(&mut store, &module, &[hello_func.into()])?; in coredump_attached_to_error()
H A Dtraps.rs24 let hello_func = Func::new(&mut store, hello_type, |_, _, _| bail!("test 123")); in test_trap_return() localVariable
26 let instance = Instance::new(&mut store, &module, &[hello_func.into()])?; in test_trap_return()
52 let hello_func = Func::new(&mut store, hello_type, |_, _, _| { in test_format_err_error_return() localVariable
56 let instance = Instance::new(&mut store, &module, &[hello_func.into()])?; in test_format_err_error_return()
89 let hello_func = Func::new(&mut store, hello_type, |_, _, _| { in test_trap_return_downcast() localVariable
93 let instance = Instance::new(&mut store, &module, &[hello_func.into()])?; in test_trap_return_downcast()