Fixed #3405 ((error) Invalid number of character ({) when these macros are def ined: 'WIN32'.)
This commit is contained in:
parent
5eb8ab70e3
commit
c8f497a9b3
|
@ -1838,8 +1838,9 @@ std::string Preprocessor::handleIncludes(const std::string &code, const std::str
|
||||||
indentmatch = indent;
|
indentmatch = indent;
|
||||||
}
|
}
|
||||||
} else if (line == "#endif") {
|
} else if (line == "#endif") {
|
||||||
--indent;
|
if (indent > 0)
|
||||||
if (indentmatch > indent) {
|
--indent;
|
||||||
|
if (indentmatch > indent || indent == 0) {
|
||||||
indentmatch = indent;
|
indentmatch = indent;
|
||||||
elseIsTrue = false;
|
elseIsTrue = false;
|
||||||
suppressCurrentCodePath = false;
|
suppressCurrentCodePath = false;
|
||||||
|
|
Loading…
Reference in New Issue