2
0
Jeroen van Rijn 2 сар өмнө
parent
commit
8c8406cc4d
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      core/os/os_js.odin

+ 5 - 0
core/os/os_js.odin

@@ -252,4 +252,9 @@ current_thread_id :: proc "contextless" () -> int {
 
 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
 }