if + page + endif problem

View: New views
2 Messages — Rating Filter:   Alert me  

if + page + endif problem

by Lars Stavholm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm trying to produce a users guide by embedding doxygen stuff
in the source files. I use the following setup:

\if usersguide
\page ...
...
\endif

Then I process the source code once with "ENABLED_SECTIONS =
usersguide", and once with "ENABLED_SECTIONS = ".

But as it turns out, when using ENABLED_SECTIONS = usersguide,
the \page directive takes over completely, complaining about
an \endif without matching \if. And of course, the main processing
complains about documentation block ending in the middle of a
conditional section.

So, my conclusion is that either this is a bug in doxygen,
or I'm going about this the wrong way.

Any thoughts?

/Lars Stavholm


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Doxygen-users mailing list
Doxygen-users@...
https://lists.sourceforge.net/lists/listinfo/doxygen-users

Re: if + page + endif problem

by Lars Stavholm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Let me rephrase: has anyone successfully used the following:

\if condition
\page
...
\endif

/L

Lars Stavholm wrote:

> Hi all,
>
> I'm trying to produce a users guide by embedding doxygen stuff
> in the source files. I use the following setup:
>
> \if usersguide
> \page ...
> ...
> \endif
>
> Then I process the source code once with "ENABLED_SECTIONS =
> usersguide", and once with "ENABLED_SECTIONS = ".
>
> But as it turns out, when using ENABLED_SECTIONS = usersguide,
> the \page directive takes over completely, complaining about
> an \endif without matching \if. And of course, the main processing
> complains about documentation block ending in the middle of a
> conditional section.
>
> So, my conclusion is that either this is a bug in doxygen,
> or I'm going about this the wrong way.
>
> Any thoughts?
>
> /Lars Stavholm
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Doxygen-users mailing list
> Doxygen-users@...
> https://lists.sourceforge.net/lists/listinfo/doxygen-users
>



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Doxygen-users mailing list
Doxygen-users@...
https://lists.sourceforge.net/lists/listinfo/doxygen-users