Browse Source

stub out get_env for js

Jeroen van Rijn 2 months ago
parent
commit
8c8406cc4d
1 changed files with 5 additions and 0 deletions
  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
 }