summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-01 13:26:37 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-12-01 13:26:37 (GMT)
commit15c1a199b08063d5fc31d0429e61019a162ee5c6 (patch)
treecef4837110fcdd7b808d5742f7e47c0fd5c963c9 /src
parent08a10bd651bdaf0c20d3277561d169f30b86b1cf (diff)
downloadDoxygen-15c1a199b08063d5fc31d0429e61019a162ee5c6.zip
Doxygen-15c1a199b08063d5fc31d0429e61019a162ee5c6.tar.gz
Doxygen-15c1a199b08063d5fc31d0429e61019a162ee5c6.tar.bz2
Fix regression when expanding macro to an empty string
Diffstat (limited to 'src')
-rw-r--r--src/pre.l7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pre.l b/src/pre.l
index fe06b6c..af0bb44 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -2392,7 +2392,7 @@ static bool expandExpression(yyscan_t yyscanner,QCString &expr,QCString *rest,in
if (expr.isEmpty())
{
//printf("<expandExpression: empty\n");
- return FALSE;
+ return TRUE;
}
if (state->expansionDict.find(expr)!=0) // check for recursive expansions
{
@@ -3321,10 +3321,11 @@ void Preprocessor::processFile(const char *fileName,BufStr &input,BufStr &output
def->fileDef = state->yyFileDef;
def->fileName = fileName;
state->defineManager.addDefine(state->yyFileName,def);
+
+ //printf("#define '%s' '%s' #nargs=%d\n",
+ // def->name.data(),def->definition.data(),def->nargs);
}
- //printf("#define '%s' '%s' #nargs=%d\n",
- // def->name.data(),def->definition.data(),def->nargs);
}
else if ((i_obrace==-1 || i_obrace>i_equals) &&
(i_cbrace==-1 || i_cbrace>i_equals) &&