mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-20 12:29:03 +00:00
wasi preview 2 support (#4027)
* all: wasip2 support Co-authored-by: Randy Reddig <randy.reddig@fastly.com>
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
// This file exists for testing this package without WebAssembly,
|
||||
// allowing empty function bodies with a //go:wasmimport directive.
|
||||
// See https://pkg.go.dev/cmd/compile for more information.
|
||||
@@ -0,0 +1,26 @@
|
||||
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
||||
|
||||
//go:build !wasip1
|
||||
|
||||
// Package stderr represents the imported interface "wasi:cli/stderr@0.2.0".
|
||||
package stderr
|
||||
|
||||
import (
|
||||
"github.com/ydnar/wasm-tools-go/cm"
|
||||
"internal/wasi/io/v0.2.0/streams"
|
||||
)
|
||||
|
||||
// GetStderr represents the imported function "get-stderr".
|
||||
//
|
||||
// get-stderr: func() -> output-stream
|
||||
//
|
||||
//go:nosplit
|
||||
func GetStderr() (result streams.OutputStream) {
|
||||
result0 := wasmimport_GetStderr()
|
||||
result = cm.Reinterpret[streams.OutputStream]((uint32)(result0))
|
||||
return
|
||||
}
|
||||
|
||||
//go:wasmimport wasi:cli/stderr@0.2.0 get-stderr
|
||||
//go:noescape
|
||||
func wasmimport_GetStderr() (result0 uint32)
|
||||
Reference in New Issue
Block a user