doxygenunion Directive Example#
Working Example#
This should work:
.. doxygenunion:: SeparateUnion
:project: union
It produces this output:
-
union SeparateUnion#
- #include <union.h>
A union of two values.
Example with Namespace#
This should work:
.. doxygenunion:: foo::MyUnion
:project: union
It produces this output:
-
union MyUnion#
- #include <union.h>
A union of two values.
Failing Example#
This intentionally fails:
.. doxygenunion:: made_up_union
:project: union
It produces the following warning message:
Warning
doxygenunion: Cannot find union “made_up_union” in doxygen XML output for project “union” from directory: ../../examples/specific/union/xml/