RESTinio
version.hpp
Go to the documentation of this file.
1 /*
2  * RESTinio
3  */
4 
5 /*!
6  * @file
7  * @brief Definition of RESTINIO_VERSION macro
8  *
9  * @since v.0.6.1
10  */
11 
12 #pragma once
13 
14 // The current version is 0.6.13
15 //
16 /*!
17  * The major part of version number.
18  *
19  * If RESTinio's version is 0.6.0 then RESTINIO_VERSION_MAJOR==0.
20  * If RESTinio's version is 1.2.4 then RESTINIO_VERSION_MAJOR==1.
21  */
22 #define RESTINIO_VERSION_MAJOR 0ull
23 
24 /*!
25  * The minon part of version number.
26  *
27  * If RESTinio's version is 0.6.0 then RESTINIO_VERSION_MINOR==6.
28  */
29 #define RESTINIO_VERSION_MINOR 6ull
30 
31 /*!
32  * The patch part of version number.
33  *
34  * If RESTinio's version is 0.6.23 then RESTINIO_VERSION_PATCH==23.
35  */
36 #define RESTINIO_VERSION_PATCH 13ull
37 
38 /*!
39  * Helper macro for make single number representation of RESTinio's version.
40  *
41  * It can be used that way:
42  * \code
43  * // Some feature is available only from 1.2.4
44  * #if RESTINIO_VERSION >= RESTINIO_VERSION_MAKE(1, 2, 4)
45  * ... // Some 1.2.4 (or above) specific code.
46  * #endif
47  * \endcode
48  */
49 #define RESTINIO_VERSION_MAKE(major, minor, patch)
50  (((major) * 1000000ull) +
51  ((minor) * 1000ull) +
52  (patch))
53 
54 /*!
55  * A single number representation of RESTinio version.
56  *
57  * For example it can be 6003ull for RESTinio-0.6.3.
58  * Or 1004023ull for RESTinio-1.4.23.
59  */
60 #define RESTINIO_VERSION RESTINIO_VERSION_MAKE(
#define RESTINIO_VERSION_MAKE(major, minor, patch)
Definition: version.hpp:49
#define RESTINIO_VERSION_MAJOR
Definition: version.hpp:22
#define RESTINIO_VERSION_MINOR
Definition: version.hpp:29
#define RESTINIO_VERSION_PATCH
Definition: version.hpp:36