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

Function print_frame

example/start.c:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10
11void print_frame(wasm_frame_t* frame) {
12 printf("> %p @ 0x%zx = %"PRIu32".0x%zx\n",
13 wasm_frame_instance(frame),
14 wasm_frame_module_offset(frame),
15 wasm_frame_func_index(frame),
16 wasm_frame_func_offset(frame)
17 );
18}
19
20
21int 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