P4C
The P4 Compiler
Loading...
Searching...
No Matches
tc/version.h
1/*
2Copyright (C) 2023 Intel Corporation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing,
11software distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions
14and limitations under the License.
15*/
16
17#ifndef BACKENDS_TC_VERSION_H_
18#define BACKENDS_TC_VERSION_H_
19
20#include <string>
21
22/* Start version defines
23** The build process will define these macros
24** so we can have the same version number as the build process */
25
26#ifndef MAJORVERSION
27#define MAJORVERSION 1
28#endif
29
30#ifndef MINORVERSION
31#define MINORVERSION 0
32#endif
33
34#ifndef BUILDVERSION
35#define BUILDVERSION 0
36#endif
37
38#ifndef FIXVERSION
39#define FIXVERSION 0
40#endif
41/* end version defines*/
42
43std::string version_string();
44unsigned int version_num();
45
46#endif /* BACKENDS_TC_VERSION_H_ */