鍍金池/ 問(wèn)答/網(wǎng)絡(luò)安全/ asio中的GENERATING_DOCUMENTATION宏定義的作用是什么?

asio中的GENERATING_DOCUMENTATION宏定義的作用是什么?

最近在看asio的源碼,其中有一個(gè)宏定義的具體意思不明,查遍了國(guó)內(nèi)外網(wǎng)站都沒(méi)有相關(guān)記錄,具體就是下面這個(gè)宏:GENERATING_DOCUMENTATION

回答
編輯回答
故林

本人寫(xiě)信給asio作者Chris,得到的回復(fù)是:Asio uses Doxygen to generate documentation directly from the Asio source code. Sometimes the generated documentation needs to be different to the real C++ implementation. Usually this happens when I want the documentation to contain simpler class or function declarations. The GENERATING_DOCUMENTATION macro is used to protect source code that should only be seen by Doxygen.

2017年12月31日 09:04