From 57269364d95d41e84965c773079ee661194fbacd Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 5 Sep 2012 13:02:33 +0000 Subject: [PATCH] Evas magic: Added compiler hints (EINA_UNLIKELY). SVN revision: 76194 --- legacy/evas/src/lib/include/evas_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/evas/src/lib/include/evas_private.h b/legacy/evas/src/lib/include/evas_private.h index 854fa0821f..fdd24c7cb2 100644 --- a/legacy/evas/src/lib/include/evas_private.h +++ b/legacy/evas/src/lib/include/evas_private.h @@ -129,7 +129,7 @@ OPAQUE_TYPE(Evas_Font_Instance); /* General type for RGBA_Font_Int */ else evas_debug_magic_wrong((m), ((t *)o)->magic); \ } # 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) # define MAGIC_CHECK_END() }} #else