Files
tinygo/src/syscall/errno_wasilibc.go
T
Ayke van Laethem 0087d4c6bf syscall: use wasi-libc tables for wasm/js target
Instead of using fake tables for errno and others, use the ones that
correspond to wasi-libc.
2024-11-19 07:51:58 +01:00

9 lines
148 B
Go

//go:build wasip1 || js
package syscall
// Use a go:extern definition to access the errno from wasi-libc
//
//go:extern errno
var libcErrno Errno