sources/version.cpp

changeset 125
d8ecf07a76cf
parent 109
e4966d7e615d
child 126
6a0d6bddf2ab
--- a/sources/version.cpp	Mon Jan 11 16:27:53 2016 +0200
+++ b/sources/version.cpp	Mon Jan 11 16:33:08 2016 +0200
@@ -35,9 +35,32 @@
 
 #include <stdio.h>
 #include <string.h>
+#include "basics.h"
 #include "version.h"
 #include "hginfo.h"
 
+#define VERSION_MAJOR 1
+#define VERSION_MINOR 2
+#define VERSION_PATCH 0
+
+#if VERSION_PATCH == 0
+# define VERSION_STRING \
+	MACRO_TO_STRING (VERSION_MAJOR) \
+	"." MACRO_TO_STRING (VERSION_MINOR)
+#else
+# define VERSION_STRING \
+	MACRO_TO_STRING (VERSION_MAJOR) \
+	"." MACRO_TO_STRING (VERSION_MINOR) \
+	"." MACRO_TO_STRING (VERSION_PATCH)
+#endif
+
+// -------------------------------------------------------------------------------------------------
+//
+const char* version_string()
+{
+	return VERSION_STRING;
+}
+
 // -------------------------------------------------------------------------------------------------
 //
 const char* full_version_string()

mercurial