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 |
#define VTM_ARRAY_LEN | ( | x | ) | sizeof(x) / sizeof(x[0]) |
Calculates the number of items in an array.
x | the array |
#define VTM_UNUSED | ( | VAR | ) | (void)VAR |
Suppresses unused variable compiler warnings.
VAR | the 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.
X | the input |