sources/version.cpp

changeset 125
d8ecf07a76cf
parent 109
e4966d7e615d
child 126
6a0d6bddf2ab
equal deleted inserted replaced
124:c5ff5a4704dd 125:d8ecf07a76cf
33 // is recompiled whenever hginfo.h changes! 33 // is recompiled whenever hginfo.h changes!
34 // 34 //
35 35
36 #include <stdio.h> 36 #include <stdio.h>
37 #include <string.h> 37 #include <string.h>
38 #include "basics.h"
38 #include "version.h" 39 #include "version.h"
39 #include "hginfo.h" 40 #include "hginfo.h"
41
42 #define VERSION_MAJOR 1
43 #define VERSION_MINOR 2
44 #define VERSION_PATCH 0
45
46 #if VERSION_PATCH == 0
47 # define VERSION_STRING \
48 MACRO_TO_STRING (VERSION_MAJOR) \
49 "." MACRO_TO_STRING (VERSION_MINOR)
50 #else
51 # define VERSION_STRING \
52 MACRO_TO_STRING (VERSION_MAJOR) \
53 "." MACRO_TO_STRING (VERSION_MINOR) \
54 "." MACRO_TO_STRING (VERSION_PATCH)
55 #endif
56
57 // -------------------------------------------------------------------------------------------------
58 //
59 const char* version_string()
60 {
61 return VERSION_STRING;
62 }
40 63
41 // ------------------------------------------------------------------------------------------------- 64 // -------------------------------------------------------------------------------------------------
42 // 65 //
43 const char* full_version_string() 66 const char* full_version_string()
44 { 67 {

mercurial