diff options
author | Josh Blum | 2013-02-13 21:56:48 -0800 |
---|---|---|
committer | Josh Blum | 2013-02-13 21:56:48 -0800 |
commit | ea69a25436ce2a91940b93fab5a604a25a52049c (patch) | |
tree | daa460d434743dea66e721bc8f391a80d543a39b /lib/gras_impl | |
parent | b2a68bb34c1776bde910c5950a4afa4f34a5f471 (diff) | |
download | sandhi-ea69a25436ce2a91940b93fab5a604a25a52049c.tar.gz sandhi-ea69a25436ce2a91940b93fab5a604a25a52049c.tar.bz2 sandhi-ea69a25436ce2a91940b93fab5a604a25a52049c.zip |
gras: fun with gcc branch hints
Diffstat (limited to 'lib/gras_impl')
-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); \ |