MCPcopy Create free account
hub / github.com/WebAssembly/wasm-c-api / get_export_func

Function get_export_func

example/table.cc:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28auto get_export_func(const wasm::ownvec<wasm::Extern>& exports, size_t i) -> const wasm::Func* {
29 if (exports.size() <= i || !exports[i]->func()) {
30 std::cout << "> Error accessing function export " << i << "!" << std::endl;
31 exit(1);
32 }
33 return exports[i]->func();
34}
35
36template<class T, class U>
37void check(T actual, U expected) {

Callers 1

runFunction · 0.70

Calls 2

funcMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected