runtime: iface

This commit is contained in:
xushiwei
2024-05-26 08:59:10 +08:00
parent afe20ffe92
commit 914a0c60b0
8 changed files with 295 additions and 139 deletions

View File

@@ -42,8 +42,8 @@ var Stderr FilePtr
//go:linkname Str llgo.cstr
func Str(string) *Char
//go:linkname Advance llgo.advance
func Advance(ptr Pointer, offset int) Pointer
// llgo:link Advance llgo.advance
func Advance[PtrT any](ptr PtrT, offset int) PtrT { return ptr }
//go:linkname Alloca llgo.alloca
func Alloca(size uintptr) Pointer