xref: /freebsd-src/crypto/openssl/include/internal/nelem.h (revision 17f01e9963948a18f55eb97173123702c5dae671)
1e71b7053SJung-uk Kim /*
2e71b7053SJung-uk Kim  * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
3e71b7053SJung-uk Kim  *
4e71b7053SJung-uk Kim  * Licensed under the OpenSSL license (the "License").  You may not use
5e71b7053SJung-uk Kim  * this file except in compliance with the License.  You can obtain a copy
6e71b7053SJung-uk Kim  * in the file LICENSE in the source distribution or at
7e71b7053SJung-uk Kim  * https://www.openssl.org/source/license.html
8e71b7053SJung-uk Kim  */
9e71b7053SJung-uk Kim 
10*17f01e99SJung-uk Kim #ifndef OSSL_INTERNAL_NELEM_H
11*17f01e99SJung-uk Kim # define OSSL_INTERNAL_NELEM_H
12e71b7053SJung-uk Kim 
13e71b7053SJung-uk Kim # define OSSL_NELEM(x)    (sizeof(x)/sizeof((x)[0]))
14e71b7053SJung-uk Kim #endif
15