sources/version.cpp

changeset 64
5e968dc8d552
parent 5
146825d63b9a
child 69
eb4c25284a19
equal deleted inserted replaced
63:0da5f358f298 64:5e968dc8d552
41 // ------------------------------------------------------------------------------------------------- 41 // -------------------------------------------------------------------------------------------------
42 // 42 //
43 FUNCTION 43 FUNCTION
44 full_version_string() -> const char* 44 full_version_string() -> const char*
45 { 45 {
46 #ifdef IS_RELEASE
47 return VERSION_STRING;
48 #else
46 static char buffer[128] = {0}; 49 static char buffer[128] = {0};
47 50
48 if (buffer[0] == '\0') 51 if (buffer[0] == '\0')
49 { 52 {
50 if (strcmp (HG_BRANCH, "default") != 0) 53 if (strcmp (HG_BRANCH, "default") != 0)
52 else 55 else
53 snprintf (buffer, sizeof buffer, "%s-%s", version_string(), HG_NODE); 56 snprintf (buffer, sizeof buffer, "%s-%s", version_string(), HG_NODE);
54 } 57 }
55 58
56 return buffer; 59 return buffer;
60 #endif
57 } 61 }
58 62
59 // ------------------------------------------------------------------------------------------------- 63 // -------------------------------------------------------------------------------------------------
60 // 64 //
61 FUNCTION 65 FUNCTION

mercurial