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

Function get_export_table

example/hostref.cc:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37auto get_export_table(wasm::ownvec<wasm::Extern>& exports, size_t i) -> wasm::Table* {
38 if (exports.size() <= i || !exports[i]->table()) {
39 std::cout << "> Error accessing table export " << i << "!" << std::endl;
40 exit(1);
41 }
42 return exports[i]->table();
43}
44
45
46void call_r_v(const wasm::Func* func, const wasm::Ref* ref) {

Callers 1

runFunction · 0.70

Calls 2

tableMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected