Skip to content

Commit a95cad0

Browse files
committed
Fix ident on dynamic includes with reserved idents.
1 parent 896656d commit a95cad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/projectGenerator_pass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ bool ProjectGenerator::passDynamicIncludeObject(uint& startPos, uint& endPos, st
187187
m_configHelper.m_replaceList.find(ident) != m_configHelper.m_replaceList.end()) {
188188
// Check if the config option is for a reserved type
189189
if (m_configHelper.m_replaceList.find(ident) != m_configHelper.m_replaceList.end()) {
190-
m_replaceIncludes[tag].push_back(ident);
190+
m_replaceIncludes[tag].push_back(compare == "1" ? ident : "!" + ident);
191191
// outputInfo("Found Dynamic Replace: '" + sTag + "', '" + ident + "'");
192192
} else {
193193
includes.push_back(tag);

0 commit comments

Comments
 (0)