forked from enlightenment/efl
Evas magic: Added compiler hints (EINA_UNLIKELY).
SVN revision: 76194
This commit is contained in:
parent
ea858b74cf
commit
57269364d9
|
@ -129,7 +129,7 @@ OPAQUE_TYPE(Evas_Font_Instance); /* General type for RGBA_Font_Int */
|
||||||
else evas_debug_magic_wrong((m), ((t *)o)->magic); \
|
else evas_debug_magic_wrong((m), ((t *)o)->magic); \
|
||||||
}
|
}
|
||||||
# define MAGIC_CHECK(o, t, m) \
|
# define MAGIC_CHECK(o, t, m) \
|
||||||
{if ((!o) || (!(((t *)o)->magic == (m)))) { \
|
{if (EINA_UNLIKELY((!o) || (!(((t *)o)->magic == (m))))) { \
|
||||||
MAGIC_CHECK_FAILED(o, t, m)
|
MAGIC_CHECK_FAILED(o, t, m)
|
||||||
# define MAGIC_CHECK_END() }}
|
# define MAGIC_CHECK_END() }}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue