2
0

os_specific_js.odin 257 B

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