RE: Macroized Functions

"Michael McTernan" <[email protected]>
Newsgroups gmane.text.doxygen.devel
Message-ID <[email protected]>
Hi Duane,

I made a patch to allow \def to be used to force documentation of a define,
even if the #define is not found in the source code.  It was for a similar
problem that I made this mod.

I reported it as a bug in Bugzilla, and the patch for 1.4.3 is attached to
that.  See "Bug 310895: Cannot document non-existant defines with \def".
Maybe this could be a help to you?

Regards,

Mike

> -----Original Message-----
> From: [email protected] [mailto:doxygen-develop-
> [email protected]] On Behalf Of Duane Ellis
> Sent: 13 October 2005 17:50
> To: [email protected]
> Subject: [Doxygen-develop] Macroized Functions
> 
> We are using doxygen to document some C code for a bios.
> 
> Hundreds of functions are defined via macros. For example:
> 
> /** Set the platform RTC Clock to specified time (TZ=GMT)
> * \param p_date - Pointer to the date
> * \return  TRUE success, FALSE error (platform lacks RTC)
> */
> TRAPFUNC(   BOOL,  biosRtcSetGMT,   ( RTC_DATE *p_data ) );
> 
> The problem is the "TRAPFUNC" macro. The "trapfunc" macro creates multiple
> 
> instances of the function name - addorned with attributes and does ohter
> things.
> (the same header file is compiled in multiple ways) {It simplifies many
> many things
> We really don't want to change that.}
> 
> I've tried:
> 
> #ifdef DOXYGEN
> #define TRAPCALL( X, Y, Z )      X Y Z
> #endif
> 
> but that does not help, doxygen does not expand #defines.
> 
> Doing #ifdef DOXYGEN blocks around hundreds of API function is *NOT* a
> good idea.
> 
> Any suggestions?
> 
> -Duane.
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Power Architecture Resource Center: Free content, downloads, discussions,
> and more. http://solutions.newsforge.com/ibmarch.tmpl
> _______________________________________________
> Doxygen-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/doxygen-develop



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.