P4C
The P4 Compiler
Loading...
Searching...
No Matches
tc/version.h
1
/*
2
Copyright (C) 2023 Intel Corporation
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,
11
software 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
14
and 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
43
std::string version_string();
44
unsigned
int
version_num();
45
46
#endif
/* BACKENDS_TC_VERSION_H_ */
backends
tc
version.h
Generated by
1.12.0