mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
stub out get_env for js
This commit is contained in:
@@ -253,3 +253,8 @@ current_thread_id :: proc "contextless" () -> int {
|
|||||||
lookup_env :: proc(key: string, allocator := context.allocator) -> (value: string, found: bool) {
|
lookup_env :: proc(key: string, allocator := context.allocator) -> (value: string, found: bool) {
|
||||||
return "", false
|
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