XLKit  0.1.0
 All Classes Files Functions Typedefs Macros Groups
xlversion.hpp
Go to the documentation of this file.
1 
6 // Copyright (c) 2014 Edward Lam
7 //
8 // All rights reserved. This software is distributed under the
9 // Mozilla Public License, v. 2.0 ( http://www.mozilla.org/MPL/2.0/ ).
10 //
11 // Redistributions of source code must retain the above copyright
12 // and license notice and the following restrictions and disclaimer.
13 //
14 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
18 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY INDIRECT, INCIDENTAL,
19 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
20 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 
26 #ifndef XLKIT_VERSION_HPP
27 
31 
33 #define XLKIT_VERSION_NAME v0_1_0
34 
36 #define XLKIT_MAJOR_VERSION 0
37 #define XLKIT_MINOR_VERSION 1
39 #define XLKIT_PATCH_VERSION 0
41 
43 #define XLKIT_VERSION \
44  (((XLKIT_MAJOR_VERSION & 0x00FF) << 24) | \
45  ((XLKIT_MINOR_VERSION & 0x00FF) << 16) | \
46  ((XLKIT_PATCH_VERSION & 0xFFFF) ) )
47 
52 #define XLKIT_USE_VERSION_NAMESPACE \
53  namespace XLKIT_VERSION_NAME {} \
54  using namespace XLKIT_VERSION_NAME;
55 
57 
58 #endif // XLKIT_VERSION_HPP