mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
[core/os] get_current_directory: Add allocator arg to targets where its missing
This commit is contained in:
@@ -1095,7 +1095,7 @@ unset_env :: proc(key: string) -> Error {
|
||||
}
|
||||
|
||||
@(require_results)
|
||||
get_current_directory :: proc() -> string {
|
||||
get_current_directory :: proc(allocator := context.allocator) -> string {
|
||||
page_size := get_page_size() // NOTE(tetra): See note in os_linux.odin/get_current_directory.
|
||||
buf := make([dynamic]u8, page_size)
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user