I'm trying to document a function guarded by a #define
. The define is off by default.
#ifdef ___FOO_BAR___
void FooBar(void);
#endif
The file is being processed by Doxygen. I have added the \Fn
command according to Doxygen's Documenting the code and the section Documentation at other places:
#ifdef ___FOO_BAR___
//! \Fn void FooBar()
//! \brief ...
//! \details ...
DECLSPEC void API FooBar();
#endif
However, the function FooBar
is not being documented. Using \fn
makes no difference. And moving the documentation outside the macro's block makes no difference.
How do I instruct Doxygen to produce documentation for the function, even though its guarded by a define (and the define if off)?
The above is part of an #if \ #else \ #endif
, so I can't use preprocessor tricks. I want both sets of functions documented. In the \details
, we explain the function is only available when a particular define is enabled.
$ doxygen -version
1.8.9.1