Blame tests/upstream-test-suite/024_if.dox
|
Than Ngo |
b7bcaa |
// objective: test the \if, \ifnot, \elsif, \else, and \endif commands
|
|
Than Ngo |
b7bcaa |
// check: indexpage.xml
|
|
Than Ngo |
b7bcaa |
// config: ENABLED_SECTIONS = GUARD_ENABLED
|
|
Than Ngo |
b7bcaa |
/** \mainpage
|
|
Than Ngo |
b7bcaa |
* Unconditional (start)
|
|
Than Ngo |
b7bcaa |
* \if GUARD_ENABLED
|
|
Than Ngo |
b7bcaa |
* Enabled (if).
|
|
Than Ngo |
b7bcaa |
* \if (!GUARD_ENABLED) Disabled (if).\else Enabled (else). \endif
|
|
Than Ngo |
b7bcaa |
* \else
|
|
Than Ngo |
b7bcaa |
* Disabled.
|
|
Than Ngo |
b7bcaa |
* \endif
|
|
Than Ngo |
b7bcaa |
* Unconditional (middle)
|
|
Than Ngo |
b7bcaa |
* \ifnot GUARD_ENABLED
|
|
Than Ngo |
b7bcaa |
* Disabled (ifnot).
|
|
Than Ngo |
b7bcaa |
* \elseif GUARD_DISABLED
|
|
Than Ngo |
b7bcaa |
* Disabled (elseif).
|
|
Than Ngo |
b7bcaa |
* \else
|
|
Than Ngo |
b7bcaa |
* Enabled (else).
|
|
Than Ngo |
b7bcaa |
* \endif
|
|
Than Ngo |
b7bcaa |
* Unconditional (end)
|
|
Than Ngo |
b7bcaa |
*/
|