diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-10-20 12:11:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-20 12:11:08 (GMT) |
commit | 57c05e2f9c438874951e7717c351fc52a7a33b6d (patch) | |
tree | 29dfe14e5e15ea6145fe972ea4aac4552084ce13 | |
parent | de17b6df10a8b4cd8a3b2f42b49e9d4ac94b0da7 (diff) | |
parent | 6392703db8037e8a501e42d87c1c450c5c2ae95c (diff) | |
download | Doxygen-57c05e2f9c438874951e7717c351fc52a7a33b6d.zip Doxygen-57c05e2f9c438874951e7717c351fc52a7a33b6d.tar.gz Doxygen-57c05e2f9c438874951e7717c351fc52a7a33b6d.tar.bz2 |
Merge pull request #8120 from BetsyMcPhail/expand-nonrecursive-macro
Expand non-recursive preprocessor macros
-rw-r--r-- | src/pre.l | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2416,6 +2416,10 @@ static bool expandExpression(yyscan_t yyscanner,QCString &expr,QCString *rest,in expanded = expandExpression(yyscanner,resultExpr,&restExpr,0,level+1); state->expandedDict.erase(toStdString(macroName)); } + else if (def && def->nonRecursive) + { + expanded = true; + } if (expanded) { expr=expr.left(p)+resultExpr+restExpr; |