コード例 #1
0
ファイル: cursor.go プロジェクト: quarnster/go-clang
// CINDEX_LINKAGE int clang_Cursor_getNumArguments(CXCursor C);
func (c Cursor) NumArguments() int {
	n := C.clang_Cursor_getNumArguments(c.c)
	return int(n)
}
コード例 #2
0
ファイル: cursor_gen.go プロジェクト: go-clang/v3.6
/*
	Retrieve the number of non-variadic arguments associated with a given
	cursor.

	The number of arguments can be determined for calls as well as for
	declarations of functions or methods. For other cursors -1 is returned.
*/
func (c Cursor) NumArguments() int32 {
	return int32(C.clang_Cursor_getNumArguments(c.c))
}