diff options
-rw-r--r-- | libcommon/common/common.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcommon/common/common.hxx b/libcommon/common/common.hxx index 6ace845..6ae33d4 100644 --- a/libcommon/common/common.hxx +++ b/libcommon/common/common.hxx @@ -15,6 +15,12 @@ #include <common/config.hxx> #include <common/export.hxx> +// Make sure assert() is not diabled. +// +#ifdef NDEBUG +# error ODB tests require enabled assert(); un-define the NDEBUG macro +#endif + LIBCOMMON_EXPORT std::auto_ptr<odb::database> create_database (int& argc, char* argv[], |