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