sources/version.h

changeset 5
146825d63b9a
parent 1
4dd5bde4e777
child 35
413a7de58398
equal deleted inserted replaced
4:ec5387e121fa 5:146825d63b9a
34 #define APPNAME "hurgharama" 34 #define APPNAME "hurgharama"
35 #define VERSION_MAJOR 1 35 #define VERSION_MAJOR 1
36 #define VERSION_MINOR 0 36 #define VERSION_MINOR 0
37 #define VERSION_PATCH 0 37 #define VERSION_PATCH 0
38 38
39 // 39 // -------------------------------------------------------------------------------------------------
40 // Version string 40 // Version string
41 // 41
42 #if VERSION_PATCH == 0 42 #if VERSION_PATCH == 0
43 # define VERSION_STRING \ 43 # define VERSION_STRING \
44 MACRO_TO_STRING (VERSION_MAJOR) \ 44 MACRO_TO_STRING (VERSION_MAJOR) \
45 "." MACRO_TO_STRING (VERSION_MINOR) 45 "." MACRO_TO_STRING (VERSION_MINOR)
46 #else 46 #else
48 MACRO_TO_STRING (VERSION_MAJOR) \ 48 MACRO_TO_STRING (VERSION_MAJOR) \
49 "." MACRO_TO_STRING (VERSION_MINOR) \ 49 "." MACRO_TO_STRING (VERSION_MINOR) \
50 "." MACRO_TO_STRING (VERSION_PATCH) 50 "." MACRO_TO_STRING (VERSION_PATCH)
51 #endif 51 #endif
52 52
53 // 53 // -------------------------------------------------------------------------------------------------
54 // Returns the bare version string (1.2.3) 54 // Returns the bare version string (1.2.3)
55 // 55
56 inline FUNCTION 56 inline FUNCTION
57 version_string() -> const char* 57 version_string() -> const char*
58 { 58 {
59 return VERSION_STRING; 59 return VERSION_STRING;
60 } 60 }
61 61
62 // 62 // Returns full version string, with hash (1.2.3-abcd456)
63 // Returns full version string, with hash (1.2.3-abcd123)
64 //
65 FUNCTION full_version_string() -> const char*; 63 FUNCTION full_version_string() -> const char*;
66 64
67 //
68 // Returns changeset date string 65 // Returns changeset date string
69 //
70 FUNCTION changeset_date_string() -> const char*; 66 FUNCTION changeset_date_string() -> const char*;

mercurial