feature. See also
. The project being documented here (as the example) is the Zig library itself.
c.pthread_spin_t
pub const pthread_spin_t = switch (native_os)
File
Code
pub const pthread_spin_t = switch (native_os) {
.netbsd => switch (builtin.cpu.arch) {
.aarch64, .aarch64_be => u8,
.mips, .mipsel, .mips64, .mips64el => u32,
.powerpc, .powerpc64, .powerpc64le => i32,
.x86, .x86_64 => u8,
.arm, .armeb, .thumb, .thumbeb => i32,
.sparc, .sparc64 => u8,
.riscv32, .riscv64 => u32,
else => @compileError("undefined pthread_spin_t for this arch"),
},
else => void,
}