mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 12:18:15 +00:00
Convert ODIN_OS and ODIN_ARCH to use enums rather than use strings
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user