summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2018-08-05 00:10:39 +0800
committerJohn Hodge <tpg@ucc.asn.au>2018-08-05 00:10:39 +0800
commitec907f56199c495db061f2712a5be3977bcb11e8 (patch)
tree57ad89f8b82cfd23434bd2622a15ee6d0afe4a30 /src/include
parentb5df909cdc61a10d750e2d9cb8ba11f4bdec6609 (diff)
downloadmrust-ec907f56199c495db061f2712a5be3977bcb11e8.tar.gz
Add version number (0.8 for now, because altough not stable, it works...)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/version.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/version.hpp b/src/include/version.hpp
new file mode 100644
index 00000000..2270a592
--- /dev/null
+++ b/src/include/version.hpp
@@ -0,0 +1,20 @@
+/*
+ * MRustC - Rust Compiler
+ * - By John Hodge (Mutabah/thePowersGang)
+ *
+ * version.hpp
+ * - Compiler version number
+ */
+#pragma once
+
+#include <string>
+
+extern unsigned int giVersion_Major;
+extern unsigned int giVersion_Minor;
+extern unsigned int giVersion_Patch;
+extern const char* gsVersion_GitHash;
+extern const char* gsVersion_GitShortHash;
+extern const char* gsVersion_BuildTime;
+extern bool gbVersion_GitDirty;
+
+extern ::std::string Version_GetString();