예제 #1
0
파일: clang.go 프로젝트: quarnster/go-clang
// EqualRanges determines whether two ranges are equivalent.
func EqualRanges(r1, r2 SourceRange) bool {
	o := C.clang_equalRanges(r1.c, r2.c)
	if o != C.uint(0) {
		return true
	}
	return false
}
예제 #2
0
/*
	Determine whether two ranges are equivalent.

	Returns non-zero if the ranges are the same, zero if they differ.
*/
func (sr SourceRange) Equal(sr2 SourceRange) bool {
	o := C.clang_equalRanges(sr.c, sr2.c)

	return o != C.uint(0)
}