Archived
1
0

Adding support for multi-line defines

This commit is contained in:
Jacob Alexander 2015-08-02 13:42:16 -07:00
parent 59a7455cd9
commit 9107650076

View File

@ -123,7 +123,7 @@ class Backend( BackendBase ):
# Iterate through defines and lookup the variables # Iterate through defines and lookup the variables
for define in variables.defines.keys(): for define in variables.defines.keys():
if define in variables.overallVariables.keys(): if define in variables.overallVariables.keys():
self.fill_dict['Defines'] += "\n#define {0} {1}".format( variables.defines[ define ], variables.overallVariables[ define ] ) self.fill_dict['Defines'] += "\n#define {0} {1}".format( variables.defines[ define ], variables.overallVariables[ define ].replace( '\n', ' \\\n' ) )
else: else:
print( "{0} '{1}' not defined...".format( WARNING, define ) ) print( "{0} '{1}' not defined...".format( WARNING, define ) )