From adbf41f849da186057edfbd1873f49433dc5efd2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Sep 2011 13:43:20 +0200 Subject: Make sure NDEBUG is not defined --- libcommon/common/common.hxx | 6 ++++++ 1 file changed, 6 insertions(+) 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 #include +// 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 create_database (int& argc, char* argv[], -- cgit v1.1