llpyg: use inspect.Signature

This commit is contained in:
xushiwei
2024-05-13 19:48:33 +08:00
parent 947e5591ea
commit dd52f71069
10 changed files with 320 additions and 119 deletions

View File

@@ -39,9 +39,9 @@ import (
// to it become invalid when the Unicode object is garbage collected.
//
// llgo:link (*Object).CStrAndLen C.PyUnicode_AsUTF8AndSize
func (o *Object) CStrAndLen() (*c.Char, uintptr) { return nil, 0 }
func (u *Object) CStrAndLen() (*c.Char, uintptr) { return nil, 0 }
// As CStrAndLen, but does not store the len.
//
// llgo:link (*Object).CStr C.PyUnicode_AsUTF8
func (o *Object) CStr() *c.Char { return nil }
func (u *Object) CStr() *c.Char { return nil }