Пример #1
0
// Retrieve the spelling of a given CXTypeKind.
func (tk TypeKind) Spelling() string {
	o := cxstring{C.clang_getTypeKindSpelling(C.enum_CXTypeKind(tk))}
	defer o.Dispose()

	return o.String()
}
Пример #2
0
// Spelling returns the spelling of a given TypeKind.
func (t TypeKind) Spelling() string {
	cstr := cxstring{C.clang_getTypeKindSpelling(t.to_c())}
	defer cstr.Dispose()
	return cstr.String()
}