commit | 3d2f949c86914616d974dbe2de56a162cc7b61f5 | [log] [tgz] |
---|---|---|
author | Gilles Peskine <Gilles.Peskine@arm.com> | Mon Dec 17 23:17:17 2018 +0100 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Mon Dec 17 23:17:17 2018 +0100 |
tree | 5697f668af7d66942f5c90f57351e476133003f4 | |
parent | 1a76f3971c03adb032dcc18e18c6512814c487d0 [diff] [blame] |
Move the ARRAY_LENGTH macro to the common helpers file
diff --git a/tests/suites/helpers.function b/tests/suites/helpers.function index cbe3fa0..38c16ad 100644 --- a/tests/suites/helpers.function +++ b/tests/suites/helpers.function
@@ -150,6 +150,9 @@ mbedtls_exit( 1 ); \ } +/** Return the number of elements of a static or stack array. */ +#define ARRAY_LENGTH( array ) \ + ( sizeof( array ) / sizeof( *( array ) ) ) /* * 32-bit integer manipulation macros (big endian) */