aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/internal/wasi/cli/v0.2.0/exit/exit.wit.go
blob: b506fa18570cc2234448dcb929f43d831faee3dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// 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)