cmocka: /usr/src/cmocka/cmocka-2.0.2-1.x86_64/build/include/cmocka_version.h Source File

cmocka 2.0.2 Unit testing library with mock support

Loading...
Searching...
No Matches
cmocka_version.h
1/*
2 * Copyright 2022 Andreas Schneider <asn@cryptomilk.org>
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef _CMOCKA_VERSION_H
18#define _CMOCKA_VERSION_H
19
63
67
71#define CM_VERSION_INT(a, b, c) ((a) << 16 | (b) << 8 | (c))
72
76#define CM_VERSION_DOT(a, b, c) a ##.## b ##.## c
77
81#define CM_VERSION(a, b, c) CMOCKA_VERSION_DOT(a, b, c)
82
84
90#define CMOCKA_VERSION_MAJOR 2
91
98#define CMOCKA_VERSION_MINOR 0
99
105#define CMOCKA_VERSION_MICRO 2
106
127#define CMOCKA_VERSION_INT CM_VERSION_INT(CMOCKA_VERSION_MAJOR, \
128 CMOCKA_VERSION_MINOR, \
129 CMOCKA_VERSION_MICRO)
130
148#define CMOCKA_VERSION CM_VERSION(CMOCKA_VERSION_MAJOR, \
149 CMOCKA_VERSION_MINOR, \
150 CMOCKA_VERSION_MICRO)
151 /* cmocka_version */
153
154#endif /* _CMOCKA_VERSION_H */