mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-23 07:57:52 +00:00
Make core::os get_page_size contextless
This commit is contained in:
@@ -982,7 +982,7 @@ dlerror :: proc() -> string {
|
||||
return string(_unix_dlerror())
|
||||
}
|
||||
|
||||
get_page_size :: proc() -> int {
|
||||
get_page_size :: proc "contextless" () -> int {
|
||||
// NOTE(tetra): The page size never changes, so why do anything complicated
|
||||
// if we don't have to.
|
||||
@static page_size := -1
|
||||
|
||||
@@ -702,7 +702,7 @@ dlerror :: proc() -> string {
|
||||
return string(_unix_dlerror())
|
||||
}
|
||||
|
||||
get_page_size :: proc() -> int {
|
||||
get_page_size :: proc "contextless" () -> int {
|
||||
// NOTE(tetra): The page size never changes, so why do anything complicated
|
||||
// if we don't have to.
|
||||
@static page_size := -1
|
||||
|
||||
+1
-1
@@ -237,7 +237,7 @@ last_write_time_by_name :: proc(name: string) -> (File_Time, Errno) {
|
||||
}
|
||||
|
||||
|
||||
get_page_size :: proc() -> int {
|
||||
get_page_size :: proc "contextless" () -> int {
|
||||
unimplemented("core:os procedure not supported on JS target")
|
||||
}
|
||||
|
||||
|
||||
@@ -1005,7 +1005,7 @@ dlerror :: proc() -> string {
|
||||
return string(_unix_dlerror())
|
||||
}
|
||||
|
||||
get_page_size :: proc() -> int {
|
||||
get_page_size :: proc "contextless" () -> int {
|
||||
// NOTE(tetra): The page size never changes, so why do anything complicated
|
||||
// if we don't have to.
|
||||
@static page_size := -1
|
||||
|
||||
@@ -697,7 +697,7 @@ dlerror :: proc() -> string {
|
||||
return string(_unix_dlerror())
|
||||
}
|
||||
|
||||
get_page_size :: proc() -> int {
|
||||
get_page_size :: proc "contextless" () -> int {
|
||||
// NOTE(tetra): The page size never changes, so why do anything complicated
|
||||
// if we don't have to.
|
||||
@static page_size := -1
|
||||
|
||||
@@ -91,7 +91,7 @@ last_write_time_by_name :: proc(name: string) -> (File_Time, Errno) {
|
||||
}
|
||||
|
||||
|
||||
get_page_size :: proc() -> int {
|
||||
get_page_size :: proc "contextless" () -> int {
|
||||
// NOTE(tetra): The page size never changes, so why do anything complicated
|
||||
// if we don't have to.
|
||||
@static page_size := -1
|
||||
|
||||
Reference in New Issue
Block a user