diff options
Diffstat (limited to 'lib/gras_impl/debug.hpp')
-rw-r--r-- | lib/gras_impl/debug.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gras_impl/debug.hpp b/lib/gras_impl/debug.hpp index 7ec71e0..61376d5 100644 --- a/lib/gras_impl/debug.hpp +++ b/lib/gras_impl/debug.hpp @@ -59,7 +59,7 @@ extern void *operator new(std::size_t n) throw (std::bad_alloc); //-- implementation for assert debug //---------------------------------------------------------------------- #ifdef ASSERTING -#define ASSERT(x) {if(not (x)) \ +#define ASSERT(x) {if GRAS_UNLIKELY(not (x)) \ { \ std::cerr << "ASSERT FAIL " << __FILE__ << ":" << __LINE__ << "\n\t" << #x << std::endl << std::flush; \ throw std::runtime_error(std::string("ASSERT FAIL ") + #x); \ |