I'm pimping my C++ library and using Doxygen to write a nice documentation. Let's say I declared type:
typedef enum {
NO_ERROR, ///< Everything fine.
SOME_REALLY_BAD_ERROR, ///< Something went wrong.
VERY_INFREQUENT_ERROR ///< Used only in some cases.
} ReturnType;
and use it as return values to flag possible errors in functions. Now I define a function:
/** Very important description
*
* @return NO_ERROR on proper exit, SOME_REALLY_BAD_ERROR otherwise.
*/
ReturnType ImportantFunction();
So with every function definition I have to paste the same description of the default return value (but sometimes I will return VERY_INFREQUENT_ERROR and write different description). So my question is:
Is there a way in Doxygen to create default description of return value, or should I just create description for infrequent cases?