libdom
Loading...
Searching...
No Matches
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))
 

Macro Definition Documentation

◆ max

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

◆ min

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

◆ SLEN

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

◆ UNUSED

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