From db918b9b3dbe6df53d046e3561c07133cfc825e7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 6 Sep 2012 08:51:38 +0200 Subject: Issue error if DATABASE_* macros is not defined --- access/database.hxx | 2 ++ boost/database.hxx | 2 ++ c++11/database.hxx | 2 ++ composite/database.hxx | 2 ++ container/database.hxx | 2 ++ hello/database.hxx | 2 ++ inheritance/polymorphism/database.hxx | 2 ++ inheritance/reuse/database.hxx | 2 ++ inverse/database.hxx | 2 ++ mapping/database.hxx | 2 ++ optimistic/database.hxx | 2 ++ pimpl/database.hxx | 2 ++ qt/database.hxx | 2 ++ query/database.hxx | 2 ++ relationship/database.hxx | 2 ++ schema/custom/database.hxx | 2 ++ schema/embedded/database.hxx | 2 ++ template/database.hxx | 2 ++ view/database.hxx | 2 ++ 19 files changed, 38 insertions(+) diff --git a/access/database.hxx b/access/database.hxx index 0be5482..11599b0 100644 --- a/access/database.hxx +++ b/access/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/boost/database.hxx b/boost/database.hxx index 8fb61b9..293f592 100644 --- a/boost/database.hxx +++ b/boost/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/c++11/database.hxx b/c++11/database.hxx index 2e9eb5d..f97448f 100644 --- a/c++11/database.hxx +++ b/c++11/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::unique_ptr diff --git a/composite/database.hxx b/composite/database.hxx index 36860df..ae7caf4 100644 --- a/composite/database.hxx +++ b/composite/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/container/database.hxx b/container/database.hxx index 226f67b..5756f97 100644 --- a/container/database.hxx +++ b/container/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/hello/database.hxx b/hello/database.hxx index 2b05442..283f5cb 100644 --- a/hello/database.hxx +++ b/hello/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/inheritance/polymorphism/database.hxx b/inheritance/polymorphism/database.hxx index 403b170..4c65d2d 100644 --- a/inheritance/polymorphism/database.hxx +++ b/inheritance/polymorphism/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/inheritance/reuse/database.hxx b/inheritance/reuse/database.hxx index 605c07f..6fd1bda 100644 --- a/inheritance/reuse/database.hxx +++ b/inheritance/reuse/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/inverse/database.hxx b/inverse/database.hxx index 7ceaedf..f4e8599 100644 --- a/inverse/database.hxx +++ b/inverse/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/mapping/database.hxx b/mapping/database.hxx index 5759e10..fe210d8 100644 --- a/mapping/database.hxx +++ b/mapping/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/optimistic/database.hxx b/optimistic/database.hxx index 6e110b9..e81f6a7 100644 --- a/optimistic/database.hxx +++ b/optimistic/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/pimpl/database.hxx b/pimpl/database.hxx index c159128..7b054ea 100644 --- a/pimpl/database.hxx +++ b/pimpl/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/qt/database.hxx b/qt/database.hxx index e0004aa..3823c5d 100644 --- a/qt/database.hxx +++ b/qt/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/query/database.hxx b/query/database.hxx index b1cb086..61bb5ba 100644 --- a/query/database.hxx +++ b/query/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/relationship/database.hxx b/relationship/database.hxx index f782869..6b0e852 100644 --- a/relationship/database.hxx +++ b/relationship/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/schema/custom/database.hxx b/schema/custom/database.hxx index 39febe8..e4847ec 100644 --- a/schema/custom/database.hxx +++ b/schema/custom/database.hxx @@ -25,6 +25,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/schema/embedded/database.hxx b/schema/embedded/database.hxx index b2c81ea..22ac21a 100644 --- a/schema/embedded/database.hxx +++ b/schema/embedded/database.hxx @@ -25,6 +25,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/template/database.hxx b/template/database.hxx index 3eb2c61..dfe6562 100644 --- a/template/database.hxx +++ b/template/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr diff --git a/view/database.hxx b/view/database.hxx index 9bfe987..1fc18f7 100644 --- a/view/database.hxx +++ b/view/database.hxx @@ -28,6 +28,8 @@ # include #elif defined(DATABASE_MSSQL) # include +#else +# error unknown database; did you forget to define the DATABASE_* macros? #endif inline std::auto_ptr -- cgit v1.1