Skip to documentation
SLOP

tiny.mprompt.runWithoutContext

Reference tiny.mprompt runWithoutContext

Defined in zig_api.

Runs body(prompt) the way run does, with no context argument, so a caller whose body needs no context skips the pointer.

Called byCallstest sourcelib.mprompt.src.apitest: typed prompt run supports no-co...private sourcelib.mprompt.src.apiRunWithoutContextTypezig_apirunzig_apirunWithoutContext
Static calls · unresolved targets: 1 · external targets: 0.

Source

Source: lib/mprompt/src/api.zig:413

zig
/// Runs `body(prompt)` the way `run` does, with no context argument, so a caller whose body needs/// no context skips the pointer.pub fn runWithoutContext(    comptime Result: type,    comptime body: *const fn (*Prompt) Result,) Result {    const Context: type = RunWithoutContextType(Result, body);    var context: Context = .{};    return run(Result, &context, Context.start);}

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

zig
pub const runWithoutContext = zig_api.runWithoutContext;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433