I am trying to document my C code using doxygen. I have some default values set as macros with #define. (I know C does not have default values but this is just an example)
e.g.:
#define DEFAULT_WIDTH 100
#define DEFAULT_HEIGHT 200
Inside doxygen I have added an alias that handles default values in the way I want. Consider the example function below
//! Initializes something
//! @param width The width @default DEFAULT_WIDTH
//! @param height The height @default DEFAULT_HEIGHT
//! @return Result of initialization
char initSomething(int width,int height);
This will generate the documentation as I want it except one important fact. DEFAULT_WIDTH and DEFAULT_HEIGHT do not get expanded , I get the macro names and not 100 and 200 respectively. I do have MACRO_EXPANSION and ENABLE_PREPROCESSING checked on.
What am I missing? Is there actually any way to achieve this using doxygen?
I am configuring doxygen with doxywizard and I am currently testing under Windows.
EDIT: As ugoren points out it is possible to just document the macro and then doxygen will link that documentation to them. This is how my current implementation is in my project actually. But I am trying to consider additional options - if any exist.