20 lines
409 B
Go
20 lines
409 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 (
|
||
|
"github.com/bytecodealliance/wasm-tools-go/cm"
|
||
|
)
|
||
|
|
||
|
// Exit represents the imported function "exit".
|
||
|
//
|
||
|
// exit: func(status: result)
|
||
|
//
|
||
|
//go:nosplit
|
||
|
func Exit(status cm.BoolResult) {
|
||
|
status0 := cm.BoolToU32(status)
|
||
|
wasmimport_Exit((uint32)(status0))
|
||
|
return
|
||
|
}
|