commit | b6eb9827a6866981c08cc9613ca8b4a648894fb1 | [log] [tgz] |
---|---|---|
author | Dr. Stephen Henson <steve@openssl.org> | Sat May 02 18:30:00 2015 +0100 |
committer | Dr. Stephen Henson <steve@openssl.org> | Sun May 03 12:53:08 2015 +0100 |
tree | c5a6351461d8be964bc1f31fa2e34c4ebb7cfafd | |
parent | 31ff45aa975acb43f1da20e714eadf4649655714 [diff] [blame] |
Add OSSL_NELEM macro. Add OSSL_NELEM macro to e_os.h to determine the number of elements in an array. Reviewed-by: Tim Hudson <tjh@openssl.org>
diff --git a/e_os.h b/e_os.h index f4a427a..7f94bfc 100644 --- a/e_os.h +++ b/e_os.h
@@ -689,6 +689,8 @@ # endif # endif +#define OSSL_NELEM(x) (sizeof(x)/sizeof(x[0])) + #ifdef __cplusplus } #endif