mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
WASI
This commit is contained in:
@@ -239,3 +239,12 @@ exit :: proc "contextless" (code: int) -> ! {
|
|||||||
runtime._cleanup_runtime_contextless()
|
runtime._cleanup_runtime_contextless()
|
||||||
wasi.proc_exit(wasi.exitcode_t(code))
|
wasi.proc_exit(wasi.exitcode_t(code))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lookup_env :: proc(key: string, allocator := context.allocator) -> (value: string, found: bool) {
|
||||||
|
return "", false
|
||||||
|
}
|
||||||
|
|
||||||
|
get_env :: proc(key: string, allocator := context.allocator) -> string {
|
||||||
|
value, _ := lookup_env(key, allocator)
|
||||||
|
return value
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user