aboutsummaryrefslogtreecommitdiff
path: root/core/os/errors_js.odin
blob: 368b94d68752190b8858bb25a74140e178dabe20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#+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.

_Platform_Error :: enum i32 {}

_error_string :: proc(errno: i32) -> string {
	return "<unknown platform error>"
}

_get_platform_error :: proc(errno: _Platform_Error) -> Error {
	return Platform_Error(errno)
}