Move the ARRAY_LENGTH macro to the common helpers file
This commit is contained in:
parent
1a76f3971c
commit
3d2f949c86
2 changed files with 3 additions and 2 deletions
|
@ -150,6 +150,9 @@ typedef struct data_tag
|
|||
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)
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue