- set release mode 1.0

Tue, 16 Dec 2014 04:06:53 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Tue, 16 Dec 2014 04:06:53 +0200
changeset 64
5e968dc8d552
parent 63
0da5f358f298
child 65
8f47c682e248

- set release mode

sources/version.cpp file | annotate | diff | comparison | revisions
sources/version.h file | annotate | diff | comparison | revisions
--- a/sources/version.cpp	Tue Dec 16 03:59:52 2014 +0200
+++ b/sources/version.cpp	Tue Dec 16 04:06:53 2014 +0200
@@ -43,6 +43,9 @@
 FUNCTION
 full_version_string() -> const char*
 {
+#ifdef IS_RELEASE
+	return VERSION_STRING;
+#else
 	static char buffer[128] = {0};
 
 	if (buffer[0] == '\0')
@@ -54,6 +57,7 @@
 	}
 
 	return buffer;
+#endif
 }
 
 // -------------------------------------------------------------------------------------------------
--- a/sources/version.h	Tue Dec 16 03:59:52 2014 +0200
+++ b/sources/version.h	Tue Dec 16 04:06:53 2014 +0200
@@ -36,6 +36,8 @@
 #define VERSION_MINOR 0
 #define VERSION_PATCH 0
 
+#define IS_RELEASE
+
 // -------------------------------------------------------------------------------------------------
 // Version string
 

mercurial