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

Function CreateCAbiHeader

Source/languagec.go:268–278  ·  view source on GitHub ↗

CreateCAbiHeader creates a C header file for the component's API

(component ComponentDefinition, CHeaderName string)

Source from the content-addressed store, hash-verified

266
267// CreateCAbiHeader creates a C header file for the component's API
268func CreateCAbiHeader(component ComponentDefinition, CHeaderName string) (error) {
269 hfile, err := CreateLanguageFile(CHeaderName, " ");
270 if (err != nil) {
271 return err;
272 }
273 hfile.WriteCLicenseHeader (component,
274 fmt.Sprintf ("This is an autogenerated plain C Header file in order to allow an easy\n use of %s", component.LibraryName),
275 true);
276 err = buildCAbiHeader(component, hfile, component.NameSpace, component.BaseName, false);
277 return err;
278}
279
280func writeClassMethodsIntoCCPPHeader(component ComponentDefinition, class ComponentDefinitionClass, w LanguageWriter, NameSpace string, useCPPTypes bool) (error) {
281 w.Writeln("");

Callers 1

BuildBindingCFunction · 0.85

Calls 3

CreateLanguageFileFunction · 0.85
buildCAbiHeaderFunction · 0.85
WriteCLicenseHeaderMethod · 0.80

Tested by

no test coverage detected