示例#1
0
/**
 * \brief Determine whether the given cursor kind represents a translation
 * unit.
 */
func (ck CursorKind) IsTranslationUnit() bool {
	o := C.clang_isTranslationUnit(uint32(ck))
	if o != C.uint(0) {
		return true
	}
	return false
}
示例#2
0
// Determine whether the given cursor kind represents a translation unit.
func (ck CursorKind) IsTranslationUnit() bool {
	o := C.clang_isTranslationUnit(C.enum_CXCursorKind(ck))

	return o != C.uint(0)
}