(file, outputValue, outputType, writeEmptyValues)
| 86 | return outputValue |
| 87 | |
| 88 | def _writeValueAssignment(file, outputValue, outputType, writeEmptyValues): |
| 89 | # Mapping of types to initializers |
| 90 | assignMap = dict() |
| 91 | assignMap['float2[<N>]'] = 'float2[]' |
| 92 | |
| 93 | if outputType == 'color4': |
| 94 | outputType = 'mk_color4' |
| 95 | |
| 96 | elif outputType in assignMap: |
| 97 | outputType = assignMap[outputType] |
| 98 | writeEmptyValues = True |
| 99 | |
| 100 | if len(outputValue) or writeEmptyValues: |
| 101 | file.write(' = ') |
| 102 | if outputType: |
| 103 | file.write(outputType + '(') |
| 104 | if outputType == 'string': |
| 105 | file.write('"') |
| 106 | file.write(outputValue) |
| 107 | if outputType == 'string': |
| 108 | file.write('"') |
| 109 | if outputType: |
| 110 | file.write(')') |
| 111 | |
| 112 | def _mapType(typeName, typeMap, functionName): |
| 113 | if 'mx_constant_filename' == functionName: |
no test coverage detected