Fix core:log on -target:js_wasm32

This commit is contained in:
Jeroen van Rijn
2025-06-02 14:44:26 +02:00
parent 2788cfaa0d
commit d4a1670b93
2 changed files with 19 additions and 0 deletions

View File

@@ -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
}

View 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() { }