Hubbub $Id$
utils.h File Reference

Go to the source code of this file.

Macros

#define max(a, b)
 
#define min(a, b)
 
#define SLEN(s)
 
#define UNUSED(x)
 
#define N_ELEMENTS(x)
 

Macro Definition Documentation

◆ max

#define max ( a,
b )
Value:
((a)>(b)?(a):(b))

◆ min

#define min ( a,
b )
Value:
((a)<(b)?(a):(b))

◆ N_ELEMENTS

#define N_ELEMENTS ( x)
Value:
sizeof((x)) / sizeof((x)[0])

◆ SLEN

#define SLEN ( s)
Value:
(sizeof((s)) - 1) /* -1 for '\0' */

◆ UNUSED

#define UNUSED ( x)
Value:
((void)(x))