Browse Source

config.h: generate CROWN_VERSION with MAJOR, MINOR and PATCH

Daniele Bartolini 6 years ago
parent
commit
db99b3e467
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/config.h

+ 7 - 1
src/config.h

@@ -7,7 +7,13 @@
 
 #include "core/platform.h"
 
-#define CROWN_VERSION "0.1.2"
+#define CROWN_VERSION_MAJOR 0
+#define CROWN_VERSION_MINOR 1
+#define CROWN_VERSION_PATCH 2
+
+#define CROWN_VERSION CE_STRINGIZE(CROWN_VERSION_MAJOR) \
+	"." CE_STRINGIZE(CROWN_VERSION_MINOR) \
+	"." CE_STRINGIZE(CROWN_VERSION_PATCH)
 
 #ifndef CROWN_DEBUG
 	#define CROWN_DEBUG 0