In some doxygen documentation I'd like to display the content of a #define
, not the tag itself. For instance, in a C file I have
#define REPEAT_N_TIMES 10
Now in my documentation I want to display:
The action is done 10 times.
If I use \ref REPEAT_N_TIMES
, it displays:
The action is done REPEAT_N_TIMES times
Is there a way to display the content of a link, not the link itself, for example like \ValueOf(\ref REPEAT_N_TIMES)
or \contentOf(\ref REPEAT_N_TIMES)
?
Update: My Doxygen's config is:
// Configuration options related to the preprocessor
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = YES
EXPAND_ONLY_PREDEF = YES
SEARCH_INCLUDES = YES
INCLUDE_PATH =
INCLUDE_FILE_PATTERNS =
PREDEFINED = WXUNUSED()=
EXPAND_AS_DEFINED =
SKIP_FUNCTION_MACROS = YES
The MACRO_EXPANSION
setting seems to change the "details" of the macros. But I don't see a way to select either the name of the macro, or its content. Using the command \ref
doesn't seems to be the right way: it refers to "something" not the content of "something"
Is there an operator or function I could use, possibly similar to C, where I can use something like \ref *something
instead of \ref something
?