Remove when suffixes; Implement file scope when statement, evaluated in source order

This commit is contained in:
Ginger Bill
2017-09-10 15:17:37 +01:00
parent 85097a9958
commit e6e0aba8c3
12 changed files with 373 additions and 400 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
export "core:os_windows.odin" when ODIN_OS == "windows";
export "core:os_x.odin" when ODIN_OS == "osx";
export "core:os_linux.odin" when ODIN_OS == "linux";
when ODIN_OS == "windows" do export "core:os_windows.odin";
when ODIN_OS == "osx" do export "core:os_x.odin";
when ODIN_OS == "linux" do export "core:os_linux.odin";
write_string :: proc(fd: Handle, str: string) -> (int, Errno) {
return write(fd, cast([]u8)str);