summaryrefslogtreecommitdiffstats
path: root/testing/024_if.dox
diff options
context:
space:
mode:
Diffstat (limited to 'testing/024_if.dox')
-rw-r--r--testing/024_if.dox21
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/024_if.dox b/testing/024_if.dox
new file mode 100644
index 0000000..f24be43
--- /dev/null
+++ b/testing/024_if.dox
@@ -0,0 +1,21 @@
+// objective: test the \if, \ifnot, \elsif, \else, and \endif commands
+// check: indexpage.xml
+// config: ENABLED_SECTIONS = GUARD_ENABLED
+/** \mainpage
+ * Unconditional (start)
+ * \if GUARD_ENABLED
+ * Enabled (if).
+ * \if (!GUARD_ENABLED) Disabled (if).\else Enabled (else). \endif
+ * \else
+ * Disabled.
+ * \endif
+ * Unconditional (middle)
+ * \ifnot GUARD_ENABLED
+ * Disabled (ifnot).
+ * \elseif GUARD_DISABLED
+ * Disabled (elseif).
+ * \else
+ * Enabled (else).
+ * \endif
+ * Unconditional (end)
+ */