Fix the ASSERT() macro.

This commit is contained in:
Gunnar Beutner 2013-08-29 09:04:33 +02:00
parent e93808a468
commit 1de88b0559
1 changed files with 1 additions and 5 deletions

View File

@ -24,11 +24,7 @@
#include <stdio.h>
#ifdef NDEBUG
# if defined(__clang__) || (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
# define ASSERT(expr) __builtin_unreachable()
# else
# define ASSERT(expr) ((void)0)
# endif
# define ASSERT(expr) ((void)0)
#else /* NDEBUG */
# define ASSERT(expr) ((expr) ? 0 : icinga_assert_fail(#expr, __FILE__, __LINE__))
#endif /* NDEBUG */