zig/std/c/index.zig
Andrew Kelley 451ce09067 new unreachable syntax
* `noreturn` is the primitive type.
 * `unreachable` is a control flow keyword.
 * `@unreachable()` builtin function is deleted.

closes #214
2017-03-26 04:58:48 -04:00

14 lines
322 B
Zig

pub use @import("errno.zig");
pub use switch(@compileVar("os")) {
Os.linux => @import("c/linux.zig"),
Os.windows => @import("c/windows.zig"),
Os.darwin, Os.macosx, Os.ios => @import("c/darwin.zig"),
else => empty_import,
};
pub extern fn abort() -> noreturn;
const empty_import = @import("empty.zig");