From c57df190537a73d0cb784bfe149ff22aca884db0 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 27 Mar 2017 23:36:28 +0200 Subject: Add version information to the Makefile and to sqlitepp.h --- include/sqlitepp/sqlitepp.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'include') diff --git a/include/sqlitepp/sqlitepp.h b/include/sqlitepp/sqlitepp.h index ad09b6b..1e7f322 100644 --- a/include/sqlitepp/sqlitepp.h +++ b/include/sqlitepp/sqlitepp.h @@ -105,6 +105,24 @@ /// are destroyed. You can force them to free their resources using the /// `close` methods. +#ifndef SQLITEPP_VERSION_MAJOR +/// \brief The major version of sqlitepp (part x of version number x.y.z). +#define SQLITEPP_VERSION_MAJOR 0 +#endif + +#ifndef SQLITEPP_VERSION_MINOR +/// \brief The minor version of sqlitepp (part y of version number x.y.z). +#define SQLITEPP_VERSION_MINOR 0 +#endif + +#ifndef SQLITEPP_VERSION_PATCH +/// \brief The patch version of sqlitepp (part z of version number x.y.z). +#define SQLITEPP_VERSION_PATCH 0 +#endif + +/// \brief The sqlitepp version in the format MAJOR.MINOR.PATCH. +const std::string version = "0.1.0"; + /// \brief Contains all classes of the sqlitepp library. namespace sqlitepp { -- cgit v1.2.3