MCPcopy Create free account
hub / github.com/Autodesk/AutomaticComponentToolkit / CreateCTypesHeader

Function CreateCTypesHeader

Source/languagec.go:63–74  ·  view source on GitHub ↗

CreateCTypesHeader creates a C header file for the types in component's API

(component ComponentDefinition, CTypesHeaderName string)

Source from the content-addressed store, hash-verified

61
62// CreateCTypesHeader creates a C header file for the types in component's API
63func CreateCTypesHeader (component ComponentDefinition, CTypesHeaderName string) (error) {
64 hTypesFile, err := CreateLanguageFile(CTypesHeaderName, " ");
65 if (err != nil) {
66 return err;
67 }
68 hTypesFile.WriteCLicenseHeader (component,
69 fmt.Sprintf ("This is an autogenerated plain C Header file with basic types in\norder to allow an easy use of %s", component.LibraryName),
70 true);
71
72 err = buildCCPPTypesHeader(component, hTypesFile, component.NameSpace, false);
73 return err;
74}
75
76
77

Callers 2

createComponentFunction · 0.85
BuildBindingCFunction · 0.85

Calls 3

CreateLanguageFileFunction · 0.85
buildCCPPTypesHeaderFunction · 0.85
WriteCLicenseHeaderMethod · 0.80

Tested by

no test coverage detected