mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Move the ARRAY_LENGTH macro to the common helpers file
This commit is contained in:
@ -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)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user