MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / FuncName

Method FuncName

trap.go:171–180  ·  view source on GitHub ↗

FuncName returns the name, if available, for this frame's function

()

Source from the content-addressed store, hash-verified

169
170// FuncName returns the name, if available, for this frame's function
171func (f *Frame) FuncName() *string {
172 ret := C.wasmtime_frame_func_name(f.ptr())
173 if ret == nil {
174 runtime.KeepAlive(f)
175 return nil
176 }
177 str := C.GoStringN(ret.data, C.int(ret.size))
178 runtime.KeepAlive(f)
179 return &str
180}
181
182// ModuleName returns the name, if available, for this frame's module
183func (f *Frame) ModuleName() *string {

Callers 1

TestTrapFramesFunction · 0.80

Calls 1

ptrMethod · 0.95

Tested by 1

TestTrapFramesFunction · 0.64