diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-22 13:43:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-22 13:43:20 +0200 |
commit | adbf41f849da186057edfbd1873f49433dc5efd2 (patch) | |
tree | 32d9db95b5d486f5bf34216d86b159caff52b658 /libcommon/common/common.hxx | |
parent | 01e8ab839b1a08b227972b07567e9611ae8148f0 (diff) |
Make sure NDEBUG is not defined
Diffstat (limited to 'libcommon/common/common.hxx')
-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[], |