mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 14:03:39 +00:00
26 lines
527 B
Go
26 lines
527 B
Go
// Code generated by wit-bindgen-go. DO NOT EDIT.
|
|
|
|
// Package exit represents the imported interface "wasi:cli/exit@0.2.0".
|
|
package exit
|
|
|
|
import (
|
|
"internal/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.BoolResult) {
|
|
status0 := cm.BoolToU32(status)
|
|
wasmimport_Exit((uint32)(status0))
|
|
return
|
|
}
|
|
|
|
//go:wasmimport wasi:cli/exit@0.2.0 exit
|
|
//go:noescape
|
|
func wasmimport_Exit(status0 uint32)
|