1
嵌套的if/endif樣品似乎並不如預期的工作:doxygen的嵌套如果 ENDIF樣品不工作
http://www.stack.nl/~dimitri/doxygen/manual/commands.html#cmdif
它產生:
Unconditionally shown documentation. More text. Unconditional text.
但我希望:
Unconditionally shown documentation. Unconditional text.
我嘗試了幾個doxygen版本(也是當前最新的v1.8.6)。 這個樣本是否適用於任何人?
作爲一種變通方法我用:
/*! Unconditionally shown documentation.
* \if Cond1
* Only included if Cond1 is set.
* \endif
* \if Cond2
* Only included if Cond2 is set.
* \endif
* \if (Cond2 && Cond3)
* Only included if Cond2 and Cond3 are set.
* \endif
* \if Cond2
* More text.
* \endif
* Unconditional text.
*/
但我寧願使用嵌套樣式從原來的樣品。
我犯了一個錯誤報告:[鏈接](https://bugzilla.gnome.org/show_bug.cgi?id=722603
請在bug跟蹤在這裏提交錯誤報告這個) –