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

Function print_frame

example/trap.cc:20–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19
20void print_frame(const wasm::Frame* frame) {
21 std::cout << "> " << frame->instance();
22 std::cout << " @ 0x" << std::hex << frame->module_offset();
23 std::cout << " = " << frame->func_index();
24 std::cout << ".0x" << std::hex << frame->func_offset() << std::endl;
25}
26
27
28void run() {

Callers 1

runFunction · 0.70

Calls 4

instanceMethod · 0.80
module_offsetMethod · 0.80
func_indexMethod · 0.80
func_offsetMethod · 0.80

Tested by

no test coverage detected