diff --git a/py/unicode.go b/py/unicode.go index 62ac7b4b..f9e3d281 100644 --- a/py/unicode.go +++ b/py/unicode.go @@ -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 } diff --git a/x/cjson/cjson.go b/x/cjson/cjson.go index e91e86c9..e638e551 100644 --- a/x/cjson/cjson.go +++ b/x/cjson/cjson.go @@ -96,6 +96,11 @@ func (o *JSON) SetItem(key *c.Char, item *JSON) c.Int { return 0 } // llgo:link (*JSON).CStr C.cJSON_PrintUnformatted func (o *JSON) CStr() *c.Char { return nil } +// Same as CStr. Provided for Go+. +// +// llgo:link (*JSON).Cstr C.cJSON_PrintUnformatted +func (o *JSON) Cstr() *c.Char { return nil } + // Render a JSON entity to text for transfer/storage. // // llgo:link (*JSON).Print C.cJSON_Print