Skip to content

Commit 84eaddb

Browse files
committed
WASI
1 parent 8c8406c commit 84eaddb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/os/os_wasi.odin

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,3 +239,12 @@ exit :: proc "contextless" (code: int) -> ! {
239239
runtime._cleanup_runtime_contextless()
240240
wasi.proc_exit(wasi.exitcode_t(code))
241241
}
242+
243+
lookup_env :: proc(key: string, allocator := context.allocator) -> (value: string, found: bool) {
244+
return "", false
245+
}
246+
247+
get_env :: proc(key: string, allocator := context.allocator) -> string {
248+
value, _ := lookup_env(key, allocator)
249+
return value
250+
}

0 commit comments

Comments
 (0)