Daniele Bartolini 10 years ago
parent
commit
6ee93bd6de
3 changed files with 6 additions and 5 deletions
  1. 5 0
      src/config.h
  2. 1 1
      src/device.h
  3. 0 4
      src/platform.h

+ 5 - 0
src/config.h

@@ -7,6 +7,11 @@
 
 #include "platform.h"
 
+#define CROWN_VERSION_MAJOR "0"
+#define CROWN_VERSION_MINOR "1"
+#define CROWN_VERSION_MICRO "13"
+#define CROWN_VERSION_STRING CROWN_VERSION_MAJOR "." CROWN_VERSION_MINOR "." CROWN_VERSION_MICRO
+
 #ifndef CROWN_DEBUG
 	#define CROWN_DEBUG 0
 #endif // CROWN_DEBUG

+ 1 - 1
src/device.h

@@ -49,7 +49,7 @@ struct Device
 	const char* architecture() const { return CROWN_ARCH_NAME; }
 
 	/// Returns a string identifying the engine version.
-	const char* version() const { return CROWN_VERSION_MAJOR "." CROWN_VERSION_MINOR "." CROWN_VERSION_MICRO; }
+	const char* version() const { return CROWN_VERSION_STRING; }
 
 	/// Returns wheter the engine is running.
 	bool is_running() const;

+ 0 - 4
src/platform.h

@@ -7,10 +7,6 @@
 
 #pragma once
 
-#define CROWN_VERSION_MAJOR "0"
-#define CROWN_VERSION_MINOR "1"
-#define CROWN_VERSION_MICRO "13"
-
 #define CROWN_COMPILER_CLANG 0
 #define CROWN_COMPILER_GCC 0
 #define CROWN_COMPILER_MSVC 0