From 9c658f9a1107b1879b87aa53dbb1dab60668e2b5 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 15 Feb 2018 22:20:25 +0100 Subject: 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. --- src/sqlitepp.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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) { } -- cgit v1.2.3