BLPAPI C++ 3.26.5
Loading...
Searching...
No Matches
blpapi_versionmacros.h
Go to the documentation of this file.
1/* Copyright 2012. Bloomberg Finance L.P.
2 *
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to
5 * deal in the Software without restriction, including without limitation the
6 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 * sell copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions: The above
9 * copyright notice and this permission notice shall be included in all copies
10 * or substantial portions of the Software.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18 * IN THE SOFTWARE.
19 */
20
35
36#ifndef INCLUDED_BLPAPI_VERSIONMACROS
37#define INCLUDED_BLPAPI_VERSIONMACROS
38
56
58
61
62#define BLPAPI_VERSION_MAJOR 3
63#define BLPAPI_VERSION_MINOR 26
64#define BLPAPI_VERSION_PATCH 5
65#define BLPAPI_VERSION_BUILD 1
66
67#define BLPAPI_MAKE_VERSION(MAJOR, MINOR, PATCH) \
68 ((MAJOR) * 65536 + (MINOR) * 256 + (PATCH))
69// Combine the specified 'MAJOR', 'MINOR', and 'PATCH' values to form
70// a single integer that can be used for comparisons at compile time.
71
72#define BLPAPI_SDK_VERSION \
73 BLPAPI_MAKE_VERSION( \
74 BLPAPI_VERSION_MAJOR, BLPAPI_VERSION_MINOR, BLPAPI_VERSION_PATCH)
75// Form a single integer representing the version of the BLPAPI headers
76// that can be compared with values formed by 'BLPAPI_MAKE_VERSION' at
77// compile time.
78
79#define BLPAPI_STR2(a) #a
80#define BLPAPI_STR(a) BLPAPI_STR2(a)
81
82#define BLPAPI_SDK_VERSION_STRING \
83 BLPAPI_STR(BLPAPI_VERSION_MAJOR) \
84 "." BLPAPI_STR(BLPAPI_VERSION_MINOR) "." BLPAPI_STR( \
85 BLPAPI_VERSION_PATCH) "." BLPAPI_STR(BLPAPI_VERSION_BUILD)
86// Form a single C-string representing the version of the BLPAPI headers
87// that can be used at compile time.
88
91
92#endif // INCLUDED_BLPAPI_VERSIONMACROS