mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Add LIKELY as suggested by Philippe.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14191
This commit is contained in:
parent
9a5cacfa97
commit
dbeb165518
@ -77,7 +77,7 @@ extern void ML_(am_assert_fail) ( const HChar* expr,
|
||||
const HChar* fn );
|
||||
|
||||
#define aspacem_assert(expr) \
|
||||
((void) ((expr) ? 0 : \
|
||||
((void) (LIKELY(expr) ? 0 : \
|
||||
(ML_(am_assert_fail)(#expr, \
|
||||
__FILE__, __LINE__, \
|
||||
__PRETTY_FUNCTION__))))
|
||||
|
||||
@ -35,11 +35,11 @@
|
||||
|
||||
|
||||
/* ---------------------------------------------------------------------
|
||||
Assert machinery for use in this file. VG_(assert) cannot be called
|
||||
Assert machinery for use in this file. vg_assert cannot be called
|
||||
here due to cyclic dependencies.
|
||||
------------------------------------------------------------------ */
|
||||
#define libcbase_assert(expr) \
|
||||
((void) ((expr) ? 0 : \
|
||||
((void) (LIKELY(expr) ? 0 : \
|
||||
(ML_(libcbase_assert_fail)(#expr, \
|
||||
__FILE__, __LINE__, \
|
||||
__PRETTY_FUNCTION__))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user