aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-02-15 22:20:25 +0100
committerRobin Krahl <me@robin-krahl.de>2018-02-15 22:25:52 +0100
commit9c658f9a1107b1879b87aa53dbb1dab60668e2b5 (patch)
treed50e1e6191358f60e85978e78e6275f32b8253e9 /src
parenta46be28d077b4f19f4e8537982487e33e20e4f0c (diff)
downloadsqlitepp-9c658f9a1107b1879b87aa53dbb1dab60668e2b5.tar.gz
sqlitepp-9c658f9a1107b1879b87aa53dbb1dab60668e2b5.tar.bz2
Move version information to constants
The previous approach of preprocessor definitions was not really sound as these are only present during the compilation of sqlitepp. Therefore the version information is now stored in constants within the sqlitepp namespace.
Diffstat (limited to 'src')
-rw-r--r--src/sqlitepp.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sqlitepp.cpp b/src/sqlitepp.cpp
index 10315e5..fa35b30 100644
--- a/src/sqlitepp.cpp
+++ b/src/sqlitepp.cpp
@@ -9,6 +9,14 @@
namespace sqlitepp {
+const unsigned int VERSION_MAJOR = SQLITEPP_VERSION_MAJOR;
+
+const unsigned int VERSION_MINOR = SQLITEPP_VERSION_MINOR;
+
+const unsigned int VERSION_PATCH = SQLITEPP_VERSION_PATCH;
+
+const std::string VERSION = SQLITEPP_VERSION;
+
Openable::Openable(const bool open, const std::string& name)
: m_open(open), m_name(name) {
}