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

Function make_engine

crates/c-api/tests/exception.cc:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace wasmtime;
5
6static Engine make_engine() {
7 Config config;
8 config.wasm_exceptions(true);
9 return Engine(std::move(config));
10}
11
12TEST(Exception, ConstructAndExamine) {
13 auto engine = make_engine();

Callers 1

TESTFunction · 0.70

Calls 2

EngineClass · 0.50
wasm_exceptionsMethod · 0.45

Tested by

no test coverage detected