Function getLastError [src]
Prototype
pub fn getLastError(it: *StackIterator) ?struct { err: UnwindError, address: usize, }
Parameters
it: *StackIterator
Source
pub fn getLastError(it: *StackIterator) ?struct {
err: UnwindError,
address: usize,
} {
if (!have_ucontext) return null;
if (it.unwind_state) |*unwind_state| {
if (unwind_state.last_error) |err| {
unwind_state.last_error = null;
return .{
.err = err,
.address = unwind_state.dwarf_context.pc,
};
}
}
return null;
}