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

@@ -6,7 +6,7 @@ const (
LLGoPackage = true
)
//go:linkname Printf printf
//go:linkname Printf C.printf
func Printf(format *int8, __llgo_va_list ...any)
func Max(a, b int) int {