如何在doxygen文档中包含常量的内容
我在C程序中有一个表,其中包含所有可能的错误值、它们的描述和可能的原因。我想在doxygen文档中查看此信息。 我怎样才能做到这一点 该表如下所示:如何在doxygen文档中包含常量的内容,doxygen,documentation-generation,Doxygen,Documentation Generation,我在C程序中有一个表,其中包含所有可能的错误值、它们的描述和可能的原因。我想在doxygen文档中查看此信息。 我怎样才能做到这一点 该表如下所示: /*! \brief This table lists all error codes with descriptions and possible causes. */ const ErrorCodeTable_t errorCodeTable[] = { //Nr , description , possible cause
/*!
\brief This table lists all error codes with descriptions and possible causes.
*/
const ErrorCodeTable_t errorCodeTable[] =
{
//Nr , description , possible cause
0 , "NO ERROR" ,"Command executed successfully",
1 , "TIMEOUT OCCURRED" ,"Internal timeout",
2 , "INIT FAILED" ,"Drive locked",
// ...
}
哪个版本的强氧?我认为该代码有一个小缺陷,即缺少一些花括号,但这与此处无关。最好是查看设置
MAX\u INITIALIZER\u line
和命令:\showinitializer
和\hideinitializer
。还可以查看\snippet…
命令。