llpyg: pkg.NewFuncDecl

This commit is contained in:
xushiwei
2024-05-14 18:16:32 +08:00
parent 172a268e77
commit 091fee61e0
3 changed files with 24 additions and 10 deletions

View File

@@ -25,6 +25,7 @@ import (
// https://docs.python.org/3/c-api/import.html
// https://docs.python.org/3/c-api/module.html
/*
// llgo:type C
type ModuleDefBase struct {
Unused [8]byte // TODO(xsw)
@@ -35,6 +36,7 @@ type ModuleDef struct {
Base ModuleDefBase
// TODO(xsw)
}
*/
// Return the module object corresponding to a module name. The name argument
// may be of the form package.module. First check the modules dictionary if