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

Function print_frame

example/trap.c:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22
23void print_frame(wasm_frame_t* frame) {
24 printf("> %p @ 0x%zx = %"PRIu32".0x%zx\n",
25 wasm_frame_instance(frame),
26 wasm_frame_module_offset(frame),
27 wasm_frame_func_index(frame),
28 wasm_frame_func_offset(frame)
29 );
30}
31
32
33int main(int argc, const char* argv[]) {

Callers 1

mainFunction · 0.70

Calls 4

wasm_frame_instanceFunction · 0.85
wasm_frame_module_offsetFunction · 0.85
wasm_frame_func_indexFunction · 0.85
wasm_frame_func_offsetFunction · 0.85

Tested by

no test coverage detected