예제 #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
파일: type.go 프로젝트: quarnster/go-clang
// 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()
}