From: Andre Noll Date: Sun, 11 Feb 2007 16:54:30 +0000 (+0100) Subject: para.h: Add documentation of PARA_MAX, PARA_MIN, PARA_ABS X-Git-Tag: v0.2.15~23 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=ad14b0d7021aa16a71098eeb70eaba66017ec53a;p=paraslash.git para.h: Add documentation of PARA_MAX, PARA_MIN, PARA_ABS --- diff --git a/para.h b/para.h index ee7134de..f22157d8 100644 --- a/para.h +++ b/para.h @@ -41,9 +41,11 @@ /** used in various contexts */ #define MAXLINE 255 - +/** compute the minimum of \a a and \a b */ #define PARA_MIN(a,b) ((a) < (b) ? (a) : (b)) +/** compute the maximum of \a a and \a b */ #define PARA_MAX(a,b) ((a) > (b) ? (a) : (b)) +/** compute the absolute value of \a a */ #define PARA_ABS(a) ((a) > 0 ? (a) : -(a)) /* Loglevels */ @@ -55,8 +57,8 @@ #define CRIT 6 #define EMERG 7 - #define COMPILE_TIME_LOGLEVEL 0 + #if DEBUG > COMPILE_TIME_LOGLEVEL #define PARA_DEBUG_LOG(f,...) para_log(DEBUG, "%s: " f, __FUNCTION__, __VA_ARGS__) #else