How can I keep doxygen from documenting #defines in a C file?

Posted by Chris Nelson on Stack Overflow See other posts from Stack Overflow or by Chris Nelson
Published on 2009-11-04T16:40:45Z Indexed on 2010/03/14 20:15 UTC
Read the original article Hit count: 196

Filed under:
|
|

I have #define values in headers that I certainly want Doxygen to document but I have others in C files that I treat as static constants and I don't want Doxygen to document them. Something as simple and stupid as

#define NUMBER_OF(a) (sizeof((a))/sizeof((a)[0]))
#define MSTR(e) #e

How can I keep Doxygen from putting those #defines in the documentation it creates? I've tried marking it with @internal but that didn't seem to help.

A somewhat-related question on Doxygen and #define, how can I get:

#define SOME_CONSTANT 1234 /**< An explanation */

to put "SOME_CONSTANT" and "An explanation" but not "1234" in the output?

© Stack Overflow or respective owner

Related posts about doxygen

Related posts about c