Skip to documentation
SLOP

tiny.mprompt.processAllocator

Reference tiny.mprompt processAllocator

Defined in tiny.mprompt.

Returns the process-wide allocator of the sys package, so the effect layer allocates its resumption records from the same allocator as the runtime.

Called byCallsNo direct callsprivate sourcelib.mprompt.src.prompt.GSavefreeprivate sourcelib.mprompt.src.prompt.GStackallocprivate sourcelib.mprompt.src.prompt.GStackfreeprivate sourcelib.mprompt.src.prompt.GStacksaveprivate sourcelib.mprompt.src.prompt.PromptSavefree+6 moretiny.mpromptprocessAllocator
Static calls · unresolved targets: 0 · external targets: 1.

Source

Source: lib/mprompt/src/prompt.zig:1091

zig
/// Returns the process-wide allocator of the `sys` package, so the effect layer allocates its/// resumption records from the same allocator as the runtime. The runtime allocates from it the/// prompt records, the stacklet records, the saved stack copies, and the records behind multi-shot/// handles. A program can replace this allocator through the `sys` package's override.pub fn processAllocator() std.mem.Allocator {    return sys.allocator.processAllocator();}

Source: lib/mprompt/src/root.zig:94

zig
pub const processAllocator = raw.processAllocator;

Complete caller list

11 direct callers.

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433