authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-10-27 13:51:14-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-10-29 06:20:51-07:00
loga87fd37bf59a975ba057bec408d2908d6168a084
treee99e0cd6feeb81e7fb334300acedaa93f572dc98
parent0caf286a1a9f1f7fe13483d7adbf3f1357b12a1c

std.Io: make Evented equal void when unimplemented

This allows conditional compilation checks.

1 files changed, 8 insertions(+), 2 deletions(-)

lib/std/Io.zig+8-2
......@@ -560,8 +560,14 @@ test {
560560const Io = @This();
561561
562562pub const Evented = switch (builtin.os.tag) {
563 .linux => @import("Io/IoUring.zig"),
564 .dragonfly, .freebsd, .netbsd, .openbsd, .macos, .ios, .tvos, .visionos, .watchos => @import("Io/Kqueue.zig"),
563 .linux => switch (builtin.cpu.arch) {
564 .x86_64, .aarch64 => @import("Io/IoUring.zig"),
565 else => void, // context-switching code not implemented yet
566 },
567 .dragonfly, .freebsd, .netbsd, .openbsd, .macos, .ios, .tvos, .visionos, .watchos => switch (builtin.cpu.arch) {
568 .x86_64, .aarch64 => @import("Io/Kqueue.zig"),
569 else => void, // context-switching code not implemented yet
570 },
565571 else => void,
566572};
567573pub const Threaded = @import("Io/Threaded.zig");