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

Function get_export_table

example/hostref.c:39–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39wasm_table_t* get_export_table(const wasm_extern_vec_t* exports, size_t i) {
40 if (exports->size <= i || !wasm_extern_as_table(exports->data[i])) {
41 printf("> Error accessing table export %zu!\n", i);
42 exit(1);
43 }
44 return wasm_extern_as_table(exports->data[i]);
45}
46
47
48own wasm_ref_t* call_v_r(const wasm_func_t* func) {

Callers 1

mainFunction · 0.70

Calls 1

wasm_extern_as_tableFunction · 0.85

Tested by

no test coverage detected