Skip to documentation
SLOP

tiny.mprompt.captureBacktrace

Reference 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.

No direct callersNo direct callstiny.mpromptcaptureBacktrace
Static calls · unresolved targets: 0 · external targets: 1.

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

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433