mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Update core/os/os_freebsd.odin
Co-authored-by: Laytan <laytanlaats@hotmail.com>
This commit is contained in:
co-authored by
Laytan
parent
6e979a96a1
commit
35f0dcbb92
@@ -841,6 +841,7 @@ get_env :: proc(key: string, allocator := context.allocator) -> (value: string)
|
|||||||
|
|
||||||
@(require_results)
|
@(require_results)
|
||||||
get_current_directory :: proc(allocator := context.allocator) -> string {
|
get_current_directory :: proc(allocator := context.allocator) -> string {
|
||||||
|
context.allocator = allocator
|
||||||
// NOTE(tetra): I would use PATH_MAX here, but I was not able to find
|
// NOTE(tetra): I would use PATH_MAX here, but I was not able to find
|
||||||
// an authoritative value for it across all systems.
|
// an authoritative value for it across all systems.
|
||||||
// The largest value I could find was 4096, so might as well use the page size.
|
// The largest value I could find was 4096, so might as well use the page size.
|
||||||
|
|||||||
Reference in New Issue
Block a user