mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-08 21:09:49 +00:00
Tidying up of branch-predict hint macros LIKELY/UNLIKELY. Fixes
#271504. (Florian Krohm, britzel@acm.org) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11736
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
#define __PUB_TOOL_LIBCBASSERT_H
|
||||
|
||||
#define tl_assert(expr) \
|
||||
((void) ((expr) ? 0 : \
|
||||
((void) (LIKELY(expr) ? 0 : \
|
||||
(VG_(assert_fail) (/*isCore?*/False, (const Char*)#expr, \
|
||||
(const Char*)__FILE__, __LINE__, \
|
||||
(const Char*)__PRETTY_FUNCTION__, \
|
||||
@@ -40,7 +40,7 @@
|
||||
0)))
|
||||
|
||||
#define tl_assert2(expr, format, args...) \
|
||||
((void) ((expr) ? 0 : \
|
||||
((void) (LIKELY(expr) ? 0 : \
|
||||
(VG_(assert_fail) (/*isCore?*/False, (const Char*)#expr, \
|
||||
(const Char*)__FILE__, __LINE__, \
|
||||
(const Char*)__PRETTY_FUNCTION__, \
|
||||
|
||||
Reference in New Issue
Block a user