xref: /freebsd/crypto/openssl/include/internal/nelem.h (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1e71b7053SJung-uk Kim /*
2*b077aed3SPierre Pronchery  * Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved.
3e71b7053SJung-uk Kim  *
4*b077aed3SPierre Pronchery  * Licensed under the Apache License 2.0 (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 
1017f01e99SJung-uk Kim #ifndef OSSL_INTERNAL_NELEM_H
1117f01e99SJung-uk Kim # define OSSL_INTERNAL_NELEM_H
12*b077aed3SPierre Pronchery # pragma once
13e71b7053SJung-uk Kim 
14e71b7053SJung-uk Kim # define OSSL_NELEM(x)    (sizeof(x)/sizeof((x)[0]))
15e71b7053SJung-uk Kim #endif
16