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.
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
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |