llpyg: pkg.NewFuncDecl
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -22,9 +22,8 @@ import (
|
||||
|
||||
// https://docs.python.org/3/c-api/type.html
|
||||
|
||||
type TypeObject struct {
|
||||
Object
|
||||
}
|
||||
// TypeObject represents the Python type object.
|
||||
type TypeObject = Object
|
||||
|
||||
// Return the type’s name. Equivalent to getting the type’s __name__ attribute.
|
||||
//
|
||||
@@ -54,4 +53,4 @@ func (t *TypeObject) Flags() uint32 { return 0 }
|
||||
func (t *TypeObject) Module() *Object { return nil }
|
||||
|
||||
// llgo:link (*TypeObject).ModuleByDef C.PyType_GetModuleByDef
|
||||
func (t *TypeObject) ModuleByDef(def *ModuleDef) *Object { return nil }
|
||||
// func (t *TypeObject) ModuleByDef(def *ModuleDef) *Object { return nil }
|
||||
|
||||
Reference in New Issue
Block a user