tiny.mprompt.prompt
Defined in tiny.mprompt.
Creates a prompt and enters it with fun and arg, which is promptCreate followed by promptEnter, so a caller runs a C-convention function on a new stacklet in one call.
Source
Source: lib/mprompt/src/prompt.zig:472
zig
/// Creates a prompt and enters it with `fun` and `arg`, which is `promptCreate` followed by/// `promptEnter`, so a caller runs a C-convention function on a new stacklet in one call. The call/// returns what `fun` returns when it finishes, or what the yield function returns when `fun`/// suspends to this prompt. The stack switch exists for x86_64 and aarch64 targets other than/// Windows, and the package compiles only for 64-bit targets.pub fn prompt(fun: StartFn, arg: ?*anyopaque) ?*anyopaque { const p = promptCreate(); return promptEnter(p, fun, arg);}Source: lib/mprompt/src/root.zig:80
zig
pub const prompt = raw.prompt;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |