parent
7c56514bd5
commit
36af9b6450
|
@ -1925,9 +1925,13 @@ namespace simplecpp {
|
||||||
// Macro parameter..
|
// Macro parameter..
|
||||||
{
|
{
|
||||||
TokenList temp(files);
|
TokenList temp(files);
|
||||||
if (expandArg(&temp, tok, loc, macros, expandedmacros, parametertokens))
|
if (expandArg(&temp, tok, loc, macros, expandedmacros, parametertokens)) {
|
||||||
|
if (tok->str() == "__VA_ARGS__" && temp.empty() && output->cback() && output->cback()->str() == "," &&
|
||||||
|
tok->nextSkipComments() && tok->nextSkipComments()->str() == ")")
|
||||||
|
output->deleteToken(output->back());
|
||||||
return recursiveExpandToken(output, temp, loc, tok, macros, expandedmacros, parametertokens);
|
return recursiveExpandToken(output, temp, loc, tok, macros, expandedmacros, parametertokens);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Macro..
|
// Macro..
|
||||||
const MacroMap::const_iterator it = macros.find(tok->str());
|
const MacroMap::const_iterator it = macros.find(tok->str());
|
||||||
|
|
Loading…
Reference in New Issue