github.com/goplus/llgo@v0.8.3/cl/_testrt/linkname/in.go (about)

     1  package main
     2  
     3  import (
     4  	_ "unsafe"
     5  
     6  	"github.com/goplus/llgo/internal/runtime/c"
     7  )
     8  
     9  //go:linkname print github.com/goplus/llgo/cl/internal/linktarget.F
    10  func print(a, b, c, d *c.Char)
    11  
    12  func main() {
    13  	print(c.Str("a"), c.Str("b"), c.Str("c"), c.Str("d"))
    14  	print(c.Str("1"), c.Str("2"), c.Str("3"), c.Str("4"))
    15  }