sources/version.cpp

branch
protocol5
changeset 131
4996c8684b93
parent 126
6a0d6bddf2ab
child 190
90bf9049e5eb
--- a/sources/version.cpp	Mon Jan 25 04:15:31 2016 +0200
+++ b/sources/version.cpp	Wed Jul 20 12:55:39 2016 +0300
@@ -1,5 +1,5 @@
 /*
-	Copyright 2014, 2015 Teemu Piippo
+	Copyright 2014 - 2016 Teemu Piippo
 	All rights reserved.
 
 	Redistribution and use in source and binary forms, with or without
@@ -35,9 +35,39 @@
 
 #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* application_name()
+{
+	return "ZFC9000";
+}
+
+// -------------------------------------------------------------------------------------------------
+//
+const char* version_string()
+{
+	return VERSION_STRING;
+}
+
 // -------------------------------------------------------------------------------------------------
 //
 const char* full_version_string()

mercurial