mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-29 09:24:33 +00:00
14 lines
257 B
Odin
14 lines
257 B
Odin
//+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
|
|
}
|