orx  stable
Portable Game Engine
orxVersion.h
Go to the documentation of this file.
1 /* Orx - Portable Game Engine
2  *
3  * Copyright (c) 2008-2017 Orx-Project
4  *
5  * This software is provided 'as-is', without any express or implied
6  * warranty. In no event will the authors be held liable for any damages
7  * arising from the use of this software.
8  *
9  * Permission is granted to anyone to use this software for any purpose,
10  * including commercial applications, and to alter it and redistribute it
11  * freely, subject to the following restrictions:
12  *
13  * 1. The origin of this software must not be misrepresented; you must not
14  * claim that you wrote the original software. If you use this software
15  * in a product, an acknowledgment in the product documentation would be
16  * appreciated but is not required.
17  *
18  * 2. Altered source versions must be plainly marked as such, and must not be
19  * misrepresented as being the original software.
20  *
21  * 3. This notice may not be removed or altered from any source
22  * distribution.
23  */
24 
42 #ifndef _orxVERSION_H_
43 #define _orxVERSION_H_
44 
45 
46 #include "base/orxType.h"
47 
48 #if !defined(__orxANDROID__) && !defined(__orxANDROID_NATIVE__) && !defined(__orxIOS__)
49 
50 #ifndef __orxVERSION_BUILD__
51 #include "base/orxBuild.h"
52 #endif /* __orxVERSION_BUILD__ */
53 
54 #endif /* !__orxANDROID__ && !__orxANDROID_NATIVE__ && !__orxIOS__ */
55 
59 #define __orxVERSION_MAJOR__ 1
60 #define __orxVERSION_MINOR__ 8
61 
62 #ifndef __orxVERSION_RELEASE__
63  #define __orxVERSION_RELEASE__ dev
64 #endif /* __orxVERSION_RELEASE__ */
65 
66 #ifndef __orxVERSION_BUILD__
67  #define __orxVERSION_BUILD__ 0UL
68 #endif /* __orxVERSION_BUILD__ */
69 
70 #define __orxVERSION_STRING__ orxSTRINGIFY(__orxVERSION_MAJOR__) "." orxSTRINGIFY(__orxVERSION_MINOR__) "-" orxSTRINGIFY(__orxVERSION_RELEASE__)
71 #define __orxVERSION_FULL_STRING__ orxSTRINGIFY(__orxVERSION_MAJOR__) "." orxSTRINGIFY(__orxVERSION_MINOR__) "." orxSTRINGIFY(__orxVERSION_BUILD__) "-" orxSTRINGIFY(__orxVERSION_RELEASE__)
72 
73 #define __orxVERSION_MASK_MAJOR__ 0xFF000000
74 #define __orxVERSION_SHIFT_MAJOR__ 24
75 #define __orxVERSION_MASK_MINOR__ 0x00FF0000
76 #define __orxVERSION_SHIFT_MINOR__ 16
77 #define __orxVERSION_MASK_BUILD__ 0x0000FFFF
78 #define __orxVERSION_SHIFT_BUILD__ 0
79 
80 #define __orxVERSION__ (((__orxVERSION_MAJOR__ << __orxVERSION_SHIFT_MAJOR__) & __orxVERSION_MASK_MAJOR__) | ((__orxVERSION_MINOR__ << __orxVERSION_SHIFT_MINOR__) & __orxVERSION_MASK_MINOR__) | ((__orxVERSION_BUILD__ << __orxVERSION_SHIFT_BUILD__) & __orxVERSION_MASK_BUILD__))
81 
82 
86 typedef struct __orxVERSION_t
87 {
88  const orxSTRING zRelease;
89  orxU32 u32Major;
90  orxU32 u32Minor;
91  orxU32 u32Build;
92 
93 } orxVERSION;
94 
95 
96 #endif /*_orxVERSION_H_*/
97 
orxU32 u32Build
Definition: orxVersion.h:91
const orxSTRING zRelease
Definition: orxVersion.h:88
orxU32 u32Minor
Definition: orxVersion.h:90
orxU32 u32Major
Definition: orxVersion.h:89

Generated for orx by doxygen 1.5.6