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 standard library.
std › c › SOL Public Constant SOL Doc Source Public Constant std.c.SOL
pub const SOL = switch (native_os ) File c.zig: 6650
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668 pub const SOL = switch (native_os ) {
.linux => linux .SOL ,
.emscripten => emscripten .SOL ,
.windows => ws2_32 .SOL ,
.openbsd , .haiku , .dragonfly , .netbsd , .freebsd , .driverkit , .ios , .maccatalyst , .macos , .tvos , .visionos , .watchos => struct {
pub const SOCKET = 0xffff ;
},
.illumos => struct {
pub const SOCKET = 0xffff ;
pub const ROUTE = 0xfffe ;
pub const PACKET = 0xfffd ;
pub const FILTER = 0xfffc ;
},
// https://github.com/SerenityOS/serenity/blob/ac44ec5ebc707f9dd0c3d4759a1e17e91db5d74f/Kernel/API/POSIX/sys/socket.h#L127
.serenity => struct {
pub const SOCKET = 1 ;
},
else => void ,
}