cl.NewPackageEx

This commit is contained in:
xushiwei
2024-06-15 12:43:05 +08:00
parent e0a25b5098
commit a45be62b68
5 changed files with 34 additions and 19 deletions

View File

@@ -80,7 +80,7 @@ func Gen(pkgPath, inFile string, src any) string {
return ret
})
ret, err := cl.NewPackage(prog, ssaPkg, nil, files)
ret, err := cl.NewPackage(prog, ssaPkg, files)
check(err)
if prog.NeedPyInit { // call PyInit if needed

View File

@@ -80,7 +80,7 @@ func GenFrom(fileOrPkg string) string {
ssaPkg.WriteTo(os.Stderr)
}
ret, err := cl.NewPackage(prog, ssaPkg, nil, pkg.Syntax)
ret, err := cl.NewPackage(prog, ssaPkg, pkg.Syntax)
check(err)
if prog.NeedPyInit { // call PyInit if needed