| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
1 |
/*! \file version.hpp |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
2 |
\brief Macros to detect cereal version |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
3 |
|
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
4 |
These macros can assist in determining the version of cereal. Be |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
5 |
warned that cereal is not guaranteed to be compatible across |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
6 |
different versions. For more information on releases of cereal, |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
7 |
see https://github.com/USCiLab/cereal/releases. |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
8 |
|
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
9 |
\ingroup utility */ |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
10 |
/* |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
11 |
Copyright (c) 2018, Shane Grant |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
12 |
All rights reserved. |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
13 |
|
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
14 |
Redistribution and use in source and binary forms, with or without |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
15 |
modification, are permitted provided that the following conditions are met: |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
16 |
* Redistributions of source code must retain the above copyright |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
17 |
notice, this list of conditions and the following disclaimer. |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
18 |
* Redistributions in binary form must reproduce the above copyright |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
19 |
notice, this list of conditions and the following disclaimer in the |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
20 |
documentation and/or other materials provided with the distribution. |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
21 |
* Neither the name of cereal nor the |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
22 |
names of its contributors may be used to endorse or promote products |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
23 |
derived from this software without specific prior written permission. |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
24 |
|
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
25 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
26 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
27 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
28 |
DISCLAIMED. IN NO EVENT SHALL RANDOLPH VOORHIES OR SHANE GRANT BE LIABLE FOR ANY |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
29 |
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
30 |
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
31 |
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
32 |
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
33 |
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
34 |
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
35 |
*/ |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
36 |
|
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
37 |
#ifndef CEREAL_VERSION_HPP_ |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
38 |
#define CEREAL_VERSION_HPP_ |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
39 |
|
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
40 |
//! The major version |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
41 |
#define CEREAL_VERSION_MAJOR 1 |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
42 |
//! The minor version |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
43 |
#define CEREAL_VERSION_MINOR 3 |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
44 |
//! The patch version |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
45 |
#define CEREAL_VERSION_PATCH 0 |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
46 |
|
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
47 |
//! The full version as a single number |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
48 |
#define CEREAL_VERSION (CEREAL_VERSION_MAJOR * 10000 \ |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
49 |
+ CEREAL_VERSION_MINOR * 100 \ |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
50 |
+ CEREAL_VERSION_PATCH) |
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
51 |
|
| 8f94a7f5 |
sago007 |
2020-05-10 10:26 |
52 |
#endif // CEREAL_VERSION_HPP_ |
|
|
1970-01-01 00:00 |
53 |
|