예제 #1
0
파일: cursor.go 프로젝트: sbinet/go-clang
/**
 * \brief Given a cursor pointing to a C++ method call or an ObjC message,
 * returns non-zero if the method/message is "dynamic", meaning:
 *
 * For a C++ method: the call is virtual.
 * For an ObjC message: the receiver is an object instance, not 'super' or a
 * specific class.
 *
 * If the method/message is "static" or the cursor does not point to a
 * method/message, it will return zero.
 */
func (c Cursor) IsDynamicCall() bool {
	o := C.clang_Cursor_isDynamicCall(c.c)
	if o != 0 {
		return true
	}
	return false
}
예제 #2
0
파일: cursor_gen.go 프로젝트: go-clang/v3.6
/*
	Given a cursor pointing to a C++ method call or an Objective-C
	message, returns non-zero if the method/message is "dynamic", meaning:

	For a C++ method: the call is virtual.
	For an Objective-C message: the receiver is an object instance, not 'super'
	or a specific class.

	If the method/message is "static" or the cursor does not point to a
	method/message, it will return zero.
*/
func (c Cursor) IsDynamicCall() bool {
	o := C.clang_Cursor_isDynamicCall(c.c)

	return o != C.int(0)
}