Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

can_replace

Tells whether the target operating system supports replacing the current process image. If this is false then calling replace or replaceFile functions will return error.OperationUnsupported.

process.can_replace
pub const can_replace = switch (native_os)

File

lib/std/process.zig:255

Code

pub const can_replace = switch (native_os) {
    .windows, .haiku, .wasi => false,
    else => true,
}