bump simplecpp

This commit is contained in:
Daniel Marjamäki 2016-07-22 17:54:16 +02:00
parent ed4a47de45
commit 175abaa34d
1 changed files with 6 additions and 0 deletions

View File

@ -809,6 +809,12 @@ public:
return nameToken->next;
}
// No arguments => not macro expansion
if (nameToken->next && nameToken->next->op != '(') {
output->push_back(new Token(nameToken->str, loc));
return nameToken->next;
}
// Parse macro-call
const std::vector<const Token*> parametertokens(getMacroParameters(nameToken, !expandedmacros1.empty()));
if (parametertokens.size() != args.size() + (args.empty() ? 2U : 1U)) {