summaryrefslogtreecommitdiff
path: root/lib/gras_impl
diff options
context:
space:
mode:
authorJosh Blum2013-02-13 21:56:48 -0800
committerJosh Blum2013-02-13 21:56:48 -0800
commitea69a25436ce2a91940b93fab5a604a25a52049c (patch)
treedaa460d434743dea66e721bc8f391a80d543a39b /lib/gras_impl
parentb2a68bb34c1776bde910c5950a4afa4f34a5f471 (diff)
downloadsandhi-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.hpp2
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); \