cl: support llgo.cstr

This commit is contained in:
xushiwei
2024-04-29 13:59:06 +08:00
parent 637db665c3
commit 4eb2ddaf15
8 changed files with 147 additions and 31 deletions

View File

@@ -22,13 +22,13 @@ const (
LLGoPackage = "decl"
)
//go:linkname String llgo.CString
//go:linkname String llgo.cstr
func String(string) *int8
//go:linkname Alloca llgo.Alloca
//go:linkname Alloca llgo.alloca
func Alloca(size uintptr) unsafe.Pointer
//go:linkname Unreachable llgo.Unreachable
//go:linkname Unreachable llgo.unreachable
func Unreachable()
//go:linkname Malloc C.malloc