嵌套的 if/endif 示例似乎无法按预期工作:
http://www.doxygen.nl/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/enter_bug.cgi?product=doxygen