Embedded Template Library 1.0
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1
2
3/******************************************************************************
4The MIT License(MIT)
5
6Embedded Template Library.
7https://github.com/ETLCPP/etl
8https://www.etlcpp.com
9
10Copyright(c) 2021 John Wellbelove
11
12Permission is hereby granted, free of charge, to any person obtaining a copy
13of this software and associated documentation files(the "Software"), to deal
14in the Software without restriction, including without limitation the rights
15to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
16copies of the Software, and to permit persons to whom the Software is
17furnished to do so, subject to the following conditions :
18
19The above copyright notice and this permission notice shall be included in all
20copies or substantial portions of the Software.
21
22THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
25AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28SOFTWARE.
29******************************************************************************/
30
31#ifndef ETL_VERSION_INCLUDED
32#define ETL_VERSION_INCLUDED
33
34#include "platform.h"
35#include "macros.h"
36
40
41#define ETL_VERSION_MAJOR 20
42#define ETL_VERSION_MINOR 40
43#define ETL_VERSION_PATCH 0
44
45#define ETL_VERSION ETL_STRING(ETL_VERSION_MAJOR) "." ETL_STRING(ETL_VERSION_MINOR) "." ETL_STRING(ETL_VERSION_PATCH)
46#define ETL_VERSION_W ETL_WIDE_STRING(ETL_VERSION_MAJOR) L"." ETL_WIDE_STRING(ETL_VERSION_MINOR) L"." ETL_WIDE_STRING(ETL_VERSION_PATCH)
47#if ETL_HAS_CHAR8_T
48 #define ETL_VERSION_U8 ETL_U8_STRING(ETL_VERSION_MAJOR) u8"." ETL_U8_STRING(ETL_VERSION_MINOR) u8"." ETL_U8_STRING(ETL_VERSION_PATCH)
49#endif
50 #define ETL_VERSION_U16 ETL_U16_STRING(ETL_VERSION_MAJOR) u"." ETL_U16_STRING(ETL_VERSION_MINOR) u"." ETL_U16_STRING(ETL_VERSION_PATCH)
51 #define ETL_VERSION_U32 ETL_U32_STRING(ETL_VERSION_MAJOR) U"." ETL_U32_STRING(ETL_VERSION_MINOR) U"." ETL_U32_STRING(ETL_VERSION_PATCH)
52#define ETL_VERSION_VALUE ((ETL_VERSION_MAJOR * 10000) + (ETL_VERSION_MINOR * 100) + ETL_VERSION_PATCH)
53
54namespace etl
55{
56 namespace traits
57 {
58 static ETL_CONSTANT long version = ETL_VERSION_VALUE;
59 static ETL_CONSTANT long version_major = ETL_VERSION_MAJOR;
60 static ETL_CONSTANT long version_minor = ETL_VERSION_MINOR;
61 static ETL_CONSTANT long version_patch = ETL_VERSION_PATCH;
62
63#if ETL_USING_CPP11
64 static constexpr const char* version_string = ETL_VERSION;
65 static constexpr const wchar_t* version_wstring = ETL_VERSION_W;
66 #if ETL_HAS_NATIVE_CHAR8_T
67 static constexpr const char8_t* version_u8string = ETL_VERSION_U8;
68 #endif
69 static constexpr const char16_t* version_u16string = ETL_VERSION_U16;
70 static constexpr const char32_t* version_u32string = ETL_VERSION_U32;
71#else
72 static const char* version_string = ETL_VERSION;
73 static const wchar_t* version_wstring = ETL_VERSION_W;
74#endif
75 }
76}
77
78#endif
79
bitset_ext
Definition absolute.h:38