mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-28 17:23:57 +00:00
Fix core:log on -target:js_wasm32
This commit is contained in:
@@ -249,3 +249,7 @@ exit :: proc "contextless" (code: int) -> ! {
|
||||
current_thread_id :: proc "contextless" () -> int {
|
||||
return 0
|
||||
}
|
||||
|
||||
lookup_env :: proc(key: string, allocator := context.allocator) -> (value: string, found: bool) {
|
||||
return "", false
|
||||
}
|
||||
15
core/terminal/terminal_js.odin
Normal file
15
core/terminal/terminal_js.odin
Normal file
@@ -0,0 +1,15 @@
|
||||
#+private
|
||||
#+build js
|
||||
package terminal
|
||||
|
||||
import "core:os"
|
||||
|
||||
_is_terminal :: proc(handle: os.Handle) -> bool {
|
||||
return true
|
||||
}
|
||||
|
||||
_init_terminal :: proc() {
|
||||
color_depth = .None
|
||||
}
|
||||
|
||||
_fini_terminal :: proc() { }
|
||||
Reference in New Issue
Block a user