xref: /openbmc/obmc-console/util.h (revision e3f1aa1e)
1*e3f1aa1eSAlexander Hansen /**
2*e3f1aa1eSAlexander Hansen  * Copyright © 2024 9elements
3*e3f1aa1eSAlexander Hansen  *
4*e3f1aa1eSAlexander Hansen  * Licensed under the Apache License, Version 2.0 (the "License");
5*e3f1aa1eSAlexander Hansen  * you may not use this file except in compliance with the License.
6*e3f1aa1eSAlexander Hansen  * You may obtain a copy of the License at
7*e3f1aa1eSAlexander Hansen  *
8*e3f1aa1eSAlexander Hansen  *     http://www.apache.org/licenses/LICENSE-2.0
9*e3f1aa1eSAlexander Hansen  *
10*e3f1aa1eSAlexander Hansen  * Unless required by applicable law or agreed to in writing, software
11*e3f1aa1eSAlexander Hansen  * distributed under the License is distributed on an "AS IS" BASIS,
12*e3f1aa1eSAlexander Hansen  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*e3f1aa1eSAlexander Hansen  * See the License for the specific language governing permissions and
14*e3f1aa1eSAlexander Hansen  * limitations under the License.
15*e3f1aa1eSAlexander Hansen  */
16*e3f1aa1eSAlexander Hansen 
17*e3f1aa1eSAlexander Hansen #pragma once
18*e3f1aa1eSAlexander Hansen 
19*e3f1aa1eSAlexander Hansen #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
20