GNOME Bugzilla – Bug 719591
expand_as_defined macro does not properly work
Last modified: 2013-12-08 18:48:35 UTC
Created attachment 263198 [details] Self-explained sample for demonstration EXPAND_AS_DEFINED tag shall (according to the documentation) expand macro (with definition taken from sources) but it doesn't. Self-explaining sample (with minimal doxyfile) are attached as gzipped tarball.
Doxygen assumes your header files are guarded against multiple inclusion and are self-contained (i.e. can be placed at the top of a .c file without causing compilation problems). This is usually good programming practice. Your example does not adhere to these assumptions. It uses a header file as a poor man's template that is expanded differently based on the inclusion context. So this will not work with doxygen, and it is also not clear what output doxygen should produce in such case. I'll add a note about this limitation in the documentation.
Adding "documentation" keyword per comment #1.