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

Function GetCExportName

Source/languagec.go:365–374  ·  view source on GitHub ↗

GetCExportName How do we name the exports in the plain C DLL

(NameSpace string, ClassName string, method ComponentDefinitionMethod, isGlobal bool)

Source from the content-addressed store, hash-verified

363
364// GetCExportName How do we name the exports in the plain C DLL
365func GetCExportName (NameSpace string, ClassName string, method ComponentDefinitionMethod, isGlobal bool) (string) {
366 CMethodName := "";
367 if isGlobal {
368 CMethodName = fmt.Sprintf("%s_%s", strings.ToLower(NameSpace), strings.ToLower(method.MethodName))
369 } else {
370 CMethodName = fmt.Sprintf("%s_%s_%s", strings.ToLower(NameSpace), strings.ToLower(ClassName), strings.ToLower(method.MethodName))
371 }
372
373 return CMethodName;
374}
375
376
377// WriteCCPPAbiMethod writes an ABI method as a C-function

Callers 5

writeMethodFunction · 0.85
buildLPRImplementationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected