MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / create_engine

Function create_engine

examples/async.cc:63–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63handle<wasm_engine_t, wasm_engine_delete> create_engine() {
64 wasm_config_t *config = wasm_config_new();
65 assert(config != nullptr);
66 wasmtime_config_consume_fuel_set(config, true);
67 handle<wasm_engine_t, wasm_engine_delete> engine;
68 // this takes ownership of config
69 engine.reset(wasm_engine_new_with_config(config));
70 assert(engine);
71 return engine;
72}
73
74handle<wasmtime_store_t, wasmtime_store_delete>
75create_store(wasm_engine_t *engine) {

Callers 1

mainFunction · 0.70

Calls 5

wasm_config_newFunction · 0.85
assertFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected