On Mon, 2013-06-03 at 13:52 +0400, Aleksandr Platonov wrote:
> Hi.
> I found that #undef is ignored by Doxygen and opened Bug about this
> problem https://bugzilla.gnome.org/show_bug.cgi?id=694147
> But got no response for about 3 month. The problem is still exist in
> latest Doxygen. Could anybody look at this?
>
It seems that patch should be the following:
diff --git a/src/pre.l b/src/pre.l
index 4c017da..6f05d91 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -233,6 +233,7 @@ class DefineManager
{
Define *d = m_contextDefines.find(name);
//printf("isDefined(%s)=%p\n",name,d);
+ if (d && d->undef) d=0;
return d;
}
/** Returns a reference to the defines found in the current
context. */
--
Aleksandr Platonov
|