tiny.mprompt.captureBacktrace
Defined in tiny.mprompt.
Fills buffer with the return addresses of the calling thread's current stack and returns how many it wrote, so a caller records the return addresses of its current stack for a diagnostic.
Source
Source: lib/mprompt/src/prompt.zig:677
zig
/// Fills `buffer` with the return addresses of the calling thread's current stack and returns how/// many it wrote, so a caller records the return addresses of its current stack for a diagnostic./// The call returns 0 for an empty buffer or on a platform without stack capture.pub fn captureBacktrace(buffer: []?*anyopaque) usize { return sys.backtrace.capture(buffer);}Source: lib/mprompt/src/root.zig:93
zig
pub const captureBacktrace = raw.captureBacktrace;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |