FuncName returns the name, if available, for this frame's function
()
| 169 | |
| 170 | // FuncName returns the name, if available, for this frame's function |
| 171 | func (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 |
| 183 | func (f *Frame) ModuleName() *string { |