mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 12:04:03 +00:00
internal/{cm,wasi}: regenerate WASI 0.2 bindings with wasm-tools-go v0.3.0
This commit is contained in:
@@ -8,17 +8,18 @@ import (
|
||||
"internal/wasi/io/v0.2.0/streams"
|
||||
)
|
||||
|
||||
// InputStream represents the imported type alias "wasi:cli/stdin@0.2.0#input-stream".
|
||||
//
|
||||
// See [streams.InputStream] for more information.
|
||||
type InputStream = streams.InputStream
|
||||
|
||||
// GetStdin represents the imported function "get-stdin".
|
||||
//
|
||||
// get-stdin: func() -> input-stream
|
||||
//
|
||||
//go:nosplit
|
||||
func GetStdin() (result streams.InputStream) {
|
||||
func GetStdin() (result InputStream) {
|
||||
result0 := wasmimport_GetStdin()
|
||||
result = cm.Reinterpret[streams.InputStream]((uint32)(result0))
|
||||
result = cm.Reinterpret[InputStream]((uint32)(result0))
|
||||
return
|
||||
}
|
||||
|
||||
//go:wasmimport wasi:cli/stdin@0.2.0 get-stdin
|
||||
//go:noescape
|
||||
func wasmimport_GetStdin() (result0 uint32)
|
||||
|
||||
Reference in New Issue
Block a user