mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-12 14:23:33 +00:00
18 lines
413 B
Odin
18 lines
413 B
Odin
#+build js wasm32, js wasm64p32
|
|
#+private
|
|
package os
|
|
|
|
// None of this does anything on js/wasm.
|
|
// It's only here so importing `core:os` on wasm panics cleanly,
|
|
// without spamming about all sorts of missing procs and types.
|
|
|
|
_pipe :: proc() -> (r, w: ^File, err: Error) {
|
|
err = .Unsupported
|
|
return
|
|
}
|
|
|
|
@(require_results)
|
|
_pipe_has_data :: proc(r: ^File) -> (ok: bool, err: Error) {
|
|
err = .Unsupported
|
|
return
|
|
} |