Adding support for multi-line defines
This commit is contained in:
parent
59a7455cd9
commit
9107650076
@ -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 ) )
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user