コード例 #1
0
ファイル: type.go プロジェクト: zimmski/go-clang
/**
 * \brief Retrieve the result type associated with a function type.
 */
func (t Type) ResultType() Type {
	o := C.clang_getResultType(t.c)
	return Type{o}
}
コード例 #2
0
ファイル: type_gen.go プロジェクト: go-clang/v3.4
/*
	Retrieve the result type associated with a function type.

	If a non-function type is passed in, an invalid type is returned.
*/
func (t Type) ResultType() Type {
	return Type{C.clang_getResultType(t.c)}
}