cl: go:linkname specifies call convention by C.xxx

This commit is contained in:
xushiwei
2024-04-26 13:09:24 +08:00
parent 33716a3385
commit f86cd74a98
9 changed files with 27 additions and 13 deletions

View File

@@ -7,8 +7,8 @@ const (
LLGoPackage = true
)
//go:linkname Printf printf
//go:linkname Printf C.printf
func Printf(format *int8, __llgo_va_list ...any)
//go:linkname Strlen strlen
//go:linkname Strlen C.strlen
func Strlen(str *int8) C.int