define.h 391 Bytes
Newer Older
Dimitri van Heesch's avatar
Dimitri van Heesch committed
1 2 3 4 5 6
/*! \file define.h
    \brief testing defines
    
    This is to test the documentation of defines.
*/

Dimitri van Heesch's avatar
Dimitri van Heesch committed
7 8 9 10 11
/*!
  \def MAX(x,y)
  Computes the maximum of \a x and \a y.
*/

12
/*! 
Dimitri van Heesch's avatar
Dimitri van Heesch committed
13
   Computes the absolute value of its argument \a x.
Dimitri van Heesch's avatar
Dimitri van Heesch committed
14 15
*/
#define ABS(x) (((x)>0)?(x):-(x))
Dimitri van Heesch's avatar
Dimitri van Heesch committed
16
#define MAX(x,y) ((x)>(y)?(x):(y))
17 18
#define MIN(x,y) ((x)>(y)?(y):(x)) 
        /*!< Computes the minimum of \a x and \a y. */