mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 12:04: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,27 @@
|
||||
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
||||
|
||||
//go:build !wasip1
|
||||
|
||||
// Package exit represents the imported interface "wasi:cli/exit@0.2.0".
|
||||
package exit
|
||||
|
||||
import (
|
||||
"github.com/ydnar/wasm-tools-go/cm"
|
||||
)
|
||||
|
||||
// Exit represents the imported function "exit".
|
||||
//
|
||||
// Exit the current instance and any linked instances.
|
||||
//
|
||||
// exit: func(status: result)
|
||||
//
|
||||
//go:nosplit
|
||||
func Exit(status cm.Result) {
|
||||
status0 := cm.LowerResult(status)
|
||||
wasmimport_Exit((uint32)(status0))
|
||||
return
|
||||
}
|
||||
|
||||
//go:wasmimport wasi:cli/exit@0.2.0 exit
|
||||
//go:noescape
|
||||
func wasmimport_Exit(status0 uint32)
|
||||
Reference in New Issue
Block a user