Hubbub $Id$
Macros
utils.h File Reference

Go to the source code of this file.

Macros

#define max(a, b)   ((a)>(b)?(a):(b))
 
#define min(a, b)   ((a)<(b)?(a):(b))
 
#define SLEN(s)   (sizeof((s)) - 1) /* -1 for '\0' */
 
#define UNUSED(x)   ((void)(x))
 
#define N_ELEMENTS(x)   sizeof((x)) / sizeof((x)[0])
 

Macro Definition Documentation

◆ max

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

◆ min

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

◆ N_ELEMENTS

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

◆ SLEN

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

◆ UNUSED

#define UNUSED (   x)    ((void)(x))