Skip to content

Commit 8aeb637

Browse files
committed
Improve detection of multi line includes.
1 parent d593359 commit 8aeb637

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

source/projectGenerator_pass.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,11 @@ bool ProjectGenerator::passDynamicInclude(const uint length, StaticList& include
225225
const uint endPos = m_inLine.find(')', startPos);
226226
string ident = m_inLine.substr(startPos, endPos - startPos);
227227
// Find the included obj
228-
startPos = m_inLine.find_first_not_of("+=: \t", endPos + 1);
229-
if (!passDynamicIncludeLine(startPos, ident, includes)) {
230-
return false;
228+
startPos = m_inLine.find_first_not_of("+=: \t\\", endPos + 1);
229+
if (startPos != string::npos) {
230+
if (!passDynamicIncludeLine(startPos, ident, includes)) {
231+
return false;
232+
}
231233
}
232234
// Check if this is a multi line declaration
233235
while (m_inLine.back() == '\\') {

0 commit comments

Comments
 (0)