blob: f1d12c808ff3e610311e827156550d3739ec3163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#+build js
#+private
package runtime
foreign import "odin_env"
_stderr_write :: proc "contextless" (data: []byte) -> (int, _OS_Errno) {
foreign odin_env {
write :: proc "contextless" (fd: u32, p: []byte) ---
}
write(1, data)
return len(data), 0
}
|