瀏覽代碼

stub out get_env for js

Jeroen van Rijn 2 月之前
父節點
當前提交
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
 }