示例#1
0
文件: type.go 项目: zimmski/go-clang
// EqualTypes determines whether two Types represent the same type.
func EqualTypes(t1, t2 Type) bool {
	o := C.clang_equalTypes(t1.c, t2.c)
	if o != C.uint(0) {
		return true
	}
	return false
}
示例#2
0
文件: type_gen.go 项目: go-clang/v3.4
/*
	Determine whether two CXTypes represent the same type.

	Returns non-zero if the CXTypes represent the same type and
	zero otherwise.
*/
func (t Type) Equal(t2 Type) bool {
	o := C.clang_equalTypes(t.c, t2.c)

	return o != C.uint(0)
}