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.
Zig › std/ › c.zig › accept_filter_arg
accept_filter_arg
c.accept_filter_arg
pub const accept_filter_arg = switch (native_os )
File
Code
pub const accept_filter_arg = switch (native_os ) {
// https://github.com/DragonFlyBSD/DragonFlyBSD/blob/6098912863ed4c7b3f70d7483910ce2956cf4ed3/sys/sys/socket.h#L164
// https://github.com/NetBSD/src/blob/cad5c68a8524927f65e22ad651de3905382be6e0/sys/sys/socket.h#L188
// https://github.com/apple/darwin-xnu/blob/2ff845c2e033bd0ff64b5b6aa6063a1f8f65aa32/bsd/sys/socket.h#L504
.freebsd , .dragonfly , .netbsd , .driverkit , .ios , .maccatalyst , .macos , .tvos , .visionos , .watchos => extern struct {
name : [16 ]u8 ,
arg : [240 ]u8 ,
},
else => void ,
}