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.

want_windows_x86_msvc_abi

These functions are required by on Windows on x86 on some ABIs. They are provided by MSVC libc, but in libc-less builds they are our responsibility.

compiler_rt.want_windows_x86_msvc_abi
pub const want_windows_x86_msvc_abi = e:

File

lib/compiler_rt.zig:391

Code

pub const want_windows_x86_msvc_abi = e: {
    if (builtin.cpu.arch != .x86) break :e false;
    if (builtin.os.tag != .windows) break :e false;
    switch (builtin.abi) {
        .none, .msvc, .itanium => {},
        else => break :e false,
    }
    // The ABI is needed, but it's only our responsibility if libc won't provide it.
    break :e !builtin.link_libc;
}