Convert ODIN_OS and ODIN_ARCH to use enums rather than use strings

This commit is contained in:
gingerBill
2022-01-20 19:56:05 +00:00
parent cfbc1a447b
commit 3d7d347192
101 changed files with 341 additions and 310 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import "core:strings"
is_separator :: proc(c: byte) -> bool {
switch c {
case '/': return true
case '\\': return ODIN_OS == "windows"
case '\\': return ODIN_OS == .Windows
}
return false
}
@@ -32,7 +32,7 @@ volume_name :: proc(path: string) -> string {
}
volume_name_len :: proc(path: string) -> int {
if ODIN_OS == "windows" {
if ODIN_OS == .Windows {
if len(path) < 2 {
return 0
}