I am making a library in C and writing internal documentation for it using Doxygen 1.9.4. I have a following header, included both from library source (in this case LIBRARY_SOURCE is defined) and from a program which is using my library:
/** @file
* File description... */
/** @brief Public function that is a part of an API */
void publicFunction();
#ifdef LIBRARY_SOURCE
/** @brief Internal function that does things. */
void internalFunction();
#endif
The problem is, Doxygen does not generate the documentation for internalFunction, but in the case ofpublicFunction everything is working as expected. Doxyfile's EXTRACT_ALL option does not help.
Why doesn't this work and how do I fix this? Thanks in advance.
LIBRARY_SOURCE? In case in the Doxyfile did you also setMACRO_EXPANSION = YES?