src/version.h

changeset 948
3a91828475fd
parent 898
4dea33733251
child 968
4b93b7963456
equal deleted inserted replaced
947:edc8fc0f37f2 948:3a91828475fd
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #pragma once 19 #pragma once
20 20
21 //
22 // Application name
23 //
24 #define APPNAME "LDForge" 21 #define APPNAME "LDForge"
25 #define UNIXNAME "ldforge" 22 #define UNIXNAME "ldforge"
26 23
27 // 24 #define MACRO_TO_STRING(X) MACRO_TO_STRING_2(X)
28 // Version number 25 #define MACRO_TO_STRING_2(X) #X
29 // 26
30 #define VERSION_MAJOR 0 27 #define VERSION_MAJOR 0
31 #define VERSION_MINOR 4 28 #define VERSION_MINOR 4
32 #define VERSION_PATCH 0 29 #define VERSION_PATCH 0
30
31 #define VERSION_MAJOR_MINOR_STRING MACRO_TO_STRING (VERSION_MAJOR) "." MACRO_TO_STRING (VERSION_MINOR)
32
33 #if VERSION_PATCH == 0
34 # define VERSION_STRING VERSION_MAJOR_MINOR_STRING
35 #else
36 # define VERSION_STRING VERSION_MAJOR_MINOR_STRING "." MACRO_TO_STRING (VERSION_PATCH)
37 #endif
33 38
34 // 39 //
35 // Build ID, this is BUILD_RELEASE for releases 40 // Build ID, this is BUILD_RELEASE for releases
36 // 41 //
37 #define BUILD_ID BUILD_INTERNAL 42 #define BUILD_ID BUILD_INTERNAL
44 49
45 #ifdef RELEASE 50 #ifdef RELEASE
46 # undef DEBUG 51 # undef DEBUG
47 #endif // RELEASE 52 #endif // RELEASE
48 53
49 const char* VersionString(); 54 const char* fullVersionString();
50 const char* FullVersionString(); 55 const char* commitTimeString();
51 const char* CommitTimeString();

mercurial