Improved the way we expand function-like macros when we can't collect all the arguments.

This commit is contained in:
Roberto Raggi
2009-03-03 16:32:08 +01:00
parent 656d70fa74
commit 55d0e4f860
2 changed files with 20 additions and 7 deletions

View File

@@ -810,9 +810,8 @@ void Preprocessor::preprocess(const QByteArray &fileName, const QByteArray &sour
++_dot;
}
if (_dot->isNot(T_RPAREN)) {
// ### warning expected T_RPAREN
}
if (_dot->isNot(T_RPAREN))
_result->append(spell);
else
expandFunctionLikeMacro(identifierToken, m);