diff options
Diffstat (limited to 'tests/t-common.h')
-rw-r--r-- | tests/t-common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/t-common.h b/tests/t-common.h index 85bcd51..c6dcd12 100644 --- a/tests/t-common.h +++ b/tests/t-common.h @@ -24,6 +24,9 @@ #ifndef PGM # error Macro PGM not defined. #endif +#ifndef DIM +# define DIM(array) (sizeof (array) / sizeof (*array)) +#endif static int verbose; |