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