示例#1
0
/*
	Parameter Module a module object.

	Parameter Index top level header index (zero-based).

	Returns the specified top level header associated with the module.
*/
func (tu TranslationUnit) Module_getTopLevelHeader(module Module, index uint32) File {
	return File{C.clang_Module_getTopLevelHeader(tu.c, module.c, C.uint(index))}
}
示例#2
0
/**
 * \param Module a module object.
 *
 * \param Index top level header index (zero-based).
 *
 * \returns the specified top level header associated with the module.
 */
func (tu TranslationUnit) TopLevelHeader(m Module, i int) File {
	return File{C.clang_Module_getTopLevelHeader(tu.c, m.c, C.unsigned(i))}
}