summaryrefslogtreecommitdiffstats
path: root/examples/define.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/define.h')
-rw-r--r--examples/define.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/define.h b/examples/define.h
index 393010e..68d2453 100644
--- a/examples/define.h
+++ b/examples/define.h
@@ -4,7 +4,14 @@
This is to test the documentation of defines.
*/
+/*!
+ \def MAX(x,y)
+ Computes the maximum of \a x and \a y.
+*/
+
/*!
- The define ABS computes the absolute value of its argument \a x.
+ Computes the absolute value of its argument \a x.
*/
#define ABS(x) (((x)>0)?(x):-(x))
+#define MAX(x,y) ((x)>(y)?(x):(y))
+#define MIN(x,y) ((x)>(y)?(y):(x)) /*!< Computes the minimum of \a x and \a y. */