From 2920e034fc940f38fc7162abdb3a082ef56bf04c Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 25 Feb 2019 13:10:20 +0100 Subject: issue #6856 Doxygen only expands macro defined in header file once when referred multiple times In case the include file is already is already in the global stack it should not be added to the global stack, but still be handled for the current file --- src/pre.l | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/pre.l b/src/pre.l index 5eb0c5c..18061f6 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 -- cgit v0.12