summaryrefslogtreecommitdiffstats
path: root/src/pre.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-03-20 20:51:38 (GMT)
committerGitHub <noreply@github.com>2019-03-20 20:51:38 (GMT)
commit0776c5491feded1d27e5765051b9170b66f0caad (patch)
treecb99bf3d0f65b4c589e02a565acf9d7337a55bee /src/pre.l
parent685bb16be27dcfe50c8ee48dae383c3f083eab06 (diff)
parent2920e034fc940f38fc7162abdb3a082ef56bf04c (diff)
downloadDoxygen-0776c5491feded1d27e5765051b9170b66f0caad.zip
Doxygen-0776c5491feded1d27e5765051b9170b66f0caad.tar.gz
Doxygen-0776c5491feded1d27e5765051b9170b66f0caad.tar.bz2
Merge pull request #6859 from albert-github/feature/issue_6856
issue #6856 Doxygen only expands macro defined in header file once when referred multiple times
Diffstat (limited to 'src/pre.l')
-rw-r--r--src/pre.l7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/pre.l b/src/pre.l
index 6ae379a..6edc766 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -464,13 +464,10 @@ static FileState *checkAndOpenFile(const QCString &fileName,bool &alreadyInclude
// global guard
if (g_curlyCount==0) // not #include inside { ... }
{
- if (g_allIncludes.find(absName)!=0)
+ if (g_allIncludes.find(absName)==0)
{
- alreadyIncluded = TRUE;
- //printf(" already included 1\n");
- return 0; // already done
+ g_allIncludes.insert(absName,(void *)0x8);
}
- g_allIncludes.insert(absName,(void *)0x8);
}
// check include stack for absName