Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub const WriteRequest = xev.WriteRequest;
pub const Async = xev.Async;
pub const File = xev.File;
pub const Process = xev.Process;
pub const Stream = stream.GenericStream;
pub const Stream = xev.Stream;
pub const Timer = xev.Timer;
pub const TCP = xev.TCP;
pub const UDP = xev.UDP;
Expand All @@ -50,6 +50,9 @@ comptime {
if (!@hasDecl(main, decl.name)) {
@compileError("missing decl: " ++ decl.name);
}
if (Decl != @TypeOf(@field(main, decl.name))) {
@compileError("decl has wrong type: " ++ decl.name);
}
}
}

Expand Down