BLPAPI C++  3.24.11
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 
28 #ifndef INCLUDED_BLPAPI_VERSIONMACROS
29 #define INCLUDED_BLPAPI_VERSIONMACROS
30 
49 #define BLPAPI_VERSION_MAJOR 3
50 #define BLPAPI_VERSION_MINOR 24
51 #define BLPAPI_VERSION_PATCH 11
52 #define BLPAPI_VERSION_BUILD 128
53 
54 #define BLPAPI_MAKE_VERSION(MAJOR, MINOR, PATCH) \
55  ((MAJOR) * 65536 + (MINOR) * 256 + (PATCH))
56 // Combine the specified 'MAJOR', 'MINOR', and 'PATCH' values to form
57 // a single integer that can be used for comparisons at compile time.
58 
59 #define BLPAPI_SDK_VERSION \
60  BLPAPI_MAKE_VERSION( \
61  BLPAPI_VERSION_MAJOR, BLPAPI_VERSION_MINOR, BLPAPI_VERSION_PATCH)
62 // Form a single integer representing the version of the BLPAPI headers
63 // that can be compared with values formed by 'BLPAPI_MAKE_VERSION' at
64 // compile time.
65 
66 #endif // INCLUDED_BLPAPI_VERSIONMACROS