Macros
macros.h File Reference

Basic macros. More...

Macros

#define VTM_ARRAY_LEN(x)   sizeof(x) / sizeof(x[0])
 
#define VTM_UNUSED(VAR)   (void)VAR
 
#define VTM_TO_STR(X)   VTM_TO_STR_INTL(X)
 
#define VTM_TO_STR_INTL(X)   #X
 

Macro Definition Documentation

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

Calculates the number of items in an array.

Parameters
xthe array
#define VTM_UNUSED (   VAR)    (void)VAR

Suppresses unused variable compiler warnings.

Parameters
VARthe variable for which warnings should be supressed.
#define VTM_TO_STR (   X)    VTM_TO_STR_INTL(X)

Evaluates to a string representation of the input.

Parameters
Xthe input