Merge pull request #149 from xushiwei/q

PyInit
This commit is contained in:
xushiwei
2024-05-12 11:28:04 +08:00
committed by GitHub
15 changed files with 189 additions and 56 deletions

View File

@@ -214,7 +214,7 @@ func (p *context) initLink(line string, prefix int, f func(inPkgName string) (fu
} else {
panic(line + ": no specified call convention. eg. //go:linkname Printf C.printf")
}
} else {
} else if c := inPkgName[0]; c >= 'A' && c <= 'Z' {
fmt.Fprintln(os.Stderr, "==>", line)
fmt.Fprintf(os.Stderr, "llgo: linkname %s not found and ignored\n", inPkgName)
}