Cstr (for Go+)

This commit is contained in:
xushiwei
2024-05-17 21:14:41 +08:00
parent f7e362dd90
commit ba61b42ef5
2 changed files with 10 additions and 0 deletions

View File

@@ -45,3 +45,8 @@ func (u *Object) CStrAndLen() (*c.Char, uintptr) { return nil, 0 }
//
// llgo:link (*Object).CStr C.PyUnicode_AsUTF8
func (u *Object) CStr() *c.Char { return nil }
// Same as CStr. Provided for Go+.
//
// llgo:link (*Object).Cstr C.PyUnicode_AsUTF8
func (u *Object) Cstr() *c.Char { return nil }