Add a ZERO macro to clear arrays

This commit is contained in:
Scott Lahteine
2016-10-22 10:07:18 -05:00
parent 627f9d5285
commit 5f5a55a0de
6 changed files with 8 additions and 7 deletions

View File

@ -78,6 +78,7 @@
#define NUMERIC(a) ((a) >= '0' && '9' >= (a))
#define NUMERIC_SIGNED(a) (NUMERIC(a) || (a) == '-')
#define COUNT(a) (sizeof(a)/sizeof(*a))
#define ZERO(a) memset(a,0,sizeof(a))
// Macros for initializing arrays
#define ARRAY_6(v1, v2, v3, v4, v5, v6, args...) { v1, v2, v3, v4, v5, v6 }