From 673acee67036ea6912e3be858844ceaaeb4e6ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Wed, 4 Apr 2012 19:55:46 +0200 Subject: [PATCH] Adding a version number like in sqlite3.h, starting with 0.1.0 --- src/SQLiteC++/SQLiteC++.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/SQLiteC++/SQLiteC++.h b/src/SQLiteC++/SQLiteC++.h index e2053b4..8714874 100644 --- a/src/SQLiteC++/SQLiteC++.h +++ b/src/SQLiteC++/SQLiteC++.h @@ -9,6 +9,27 @@ */ #pragma once + +// SQLiteC++.h requires sqlite3, and the corresponding library header +#include "sqlite3.h" + +// Include useful headers of SQLiteC++ #include "Database.h" #include "Statement.h" #include "Transaction.h" + + +/** + * @brief Version numbers for SQLiteC++ are provided in the same way as sqlite3.h + * + * The [SQLITECPP_VERSION] C preprocessor macro in the SQLiteC++.h header + * evaluates to a string literal that is the SQLite version in the + * format "X.Y.Z" where X is the major version number + * and Y is the minor version number and Z is the release number. + * + * The [SQLITECPP_VERSION_NUMBER] C preprocessor macro resolves to an integer + * with the value (X*1000000 + Y*1000 + Z) where X, Y, and Z are the same + * numbers used in [SQLITECPP_VERSION]. + */ +#define SQLITECPP_VERSION "0.1.0" +#define SQLITECPP_VERSION_NUMBER 0001000