union.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _DOXYGEN_EXAMPLE_UNION_H_
  2. #define _DOXYGEN_EXAMPLE_UNION_H_
  3. /**
  4. * @page page_howto_union How to write doxygen documentation for union.
  5. *
  6. * A comment block before the union definition is recommended to
  7. * describe the general information of the union type. In the
  8. * comment block, a `@brief` is required, other commands (such as `@note`)
  9. * are optional.
  10. *
  11. * To describe the values of the union, document is recommended
  12. * to be put after each value.
  13. *
  14. * See
  15. * <a href="https://github.com/RT-Thread/rt-thread/blob/master/documentation/0.doxygen/example/include/union.h">documentation/0.doxygen/example/include/union.h</a>
  16. * for code example.
  17. *
  18. * See @ref group_doxygen_example_union for html output.
  19. */
  20. /**
  21. * @defgroup group_doxygen_example_union Doxygen Example of Union
  22. *
  23. * @ingroup group_doxygen_example
  24. *
  25. * @brief Doxygen Example of Union.
  26. *
  27. * @{
  28. */
  29. /**
  30. * @brief Brief description of this union
  31. */
  32. union doxygen_example_union
  33. {
  34. int v1; /**< description for v1 */
  35. double v2; /**< description for v2 */
  36. };
  37. /** @} */
  38. #endif /* _DOXYGEN_EXAMPLE_UNION_H_ */