build: separate compiler and libs
This commit is contained in:
17
compiler/cl/internal/stdio/printf.go
Normal file
17
compiler/cl/internal/stdio/printf.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package stdio
|
||||
|
||||
import _ "unsafe"
|
||||
|
||||
const (
|
||||
LLGoPackage = true
|
||||
)
|
||||
|
||||
//go:linkname Printf C.printf
|
||||
func Printf(format *int8, __llgo_va_list ...any)
|
||||
|
||||
func Max(a, b int) int {
|
||||
if a > b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
Reference in New Issue
Block a user