GetCExportName How do we name the exports in the plain C DLL
(NameSpace string, ClassName string, method ComponentDefinitionMethod, isGlobal bool)
| 363 | |
| 364 | // GetCExportName How do we name the exports in the plain C DLL |
| 365 | func 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 |
no outgoing calls
no test coverage detected