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

@@ -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 types name. Equivalent to getting the types __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 }