parent
7c56514bd5
commit
36af9b6450
|
@ -1925,8 +1925,12 @@ namespace simplecpp {
|
|||
// Macro parameter..
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
// Macro..
|
||||
|
|
Loading…
Reference in New Issue