mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
wasm: implement the //go:wasmimport directive
It is implemented upstream and looks pretty stable.
This commit is contained in:
committed by
Ron Evans
parent
a4a1001dd3
commit
62e1c3ebb7
@@ -12,15 +12,13 @@ type __wasi_iovec_t struct {
|
||||
bufLen uint
|
||||
}
|
||||
|
||||
//go:wasm-module wasi_snapshot_preview1
|
||||
//export fd_write
|
||||
//go:wasmimport wasi_snapshot_preview1 fd_write
|
||||
func fd_write(id uint32, iovs *__wasi_iovec_t, iovs_len uint, nwritten *uint) (errno uint)
|
||||
|
||||
// See:
|
||||
// https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/docs.md#-proc_exitrval-exitcode
|
||||
//
|
||||
//go:wasm-module wasi_snapshot_preview1
|
||||
//export proc_exit
|
||||
//go:wasmimport wasi_snapshot_preview1 proc_exit
|
||||
func proc_exit(exitcode uint32)
|
||||
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user