This commit is contained in:
Jeroen van Rijn
2025-06-13 18:08:35 +02:00
parent 8c8406cc4d
commit 84eaddbd47

View File

@@ -239,3 +239,12 @@ exit :: proc "contextless" (code: int) -> ! {
runtime._cleanup_runtime_contextless()
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
}