#define ELM_ACTIONSLIDER_DATA_GET(o, sd) \
Elm_Actionslider_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_ACTIONSLIDER_CLASS)
-#define ELM_ACTIONSLIDER_DATA_GET_OR_RETURN(o, ptr) \
- ELM_ACTIONSLIDER_DATA_GET(o, ptr); \
- if (!ptr) \
+#define ELM_ACTIONSLIDER_DATA_GET_OR_RETURN(o, ptr) \
+ ELM_ACTIONSLIDER_DATA_GET(o, ptr); \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_ACTIONSLIDER_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_ACTIONSLIDER_DATA_GET(o, ptr); \
- if (!ptr) \
- { \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
- return val; \
+ if (EINA_UNLIKELY(!ptr)) \
+ { \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
+ return val; \
}
-#define ELM_ACTIONSLIDER_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_ACTIONSLIDER_CLASS)) \
+#define ELM_ACTIONSLIDER_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_ACTIONSLIDER_CLASS))) \
return
#endif
#define ELM_BG_DATA_GET_OR_RETURN(o, ptr) \
ELM_BG_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_BG_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_BG_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_BG_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_BG_CLASS)) \
+#define ELM_BG_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_BG_CLASS))) \
return
#endif
#define ELM_BOX_DATA_GET_OR_RETURN(o, ptr) \
ELM_BOX_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_BOX_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_BOX_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_BOX_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_BOX_CLASS)) \
+#define ELM_BOX_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_BOX_CLASS))) \
return
#endif
#define ELM_BUBBLE_DATA_GET_OR_RETURN(o, ptr) \
ELM_BUBBLE_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_BUBBLE_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_BUBBLE_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_BUBBLE_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_BUBBLE_CLASS)) \
+#define ELM_BUBBLE_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_BUBBLE_CLASS))) \
return
#endif
#define ELM_BUTTON_DATA_GET_OR_RETURN(o, ptr) \
ELM_BUTTON_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_BUTTON_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_BUTTON_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_BUTTON_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_BUTTON_CLASS)) \
+#define ELM_BUTTON_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_BUTTON_CLASS))) \
return
#endif
#define ELM_CALENDAR_DATA_GET(o, sd) \
Elm_Calendar_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_CALENDAR_CLASS)
-#define ELM_CALENDAR_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_CALENDAR_CLASS)) \
+#define ELM_CALENDAR_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_CALENDAR_CLASS))) \
return
#endif
#define ELM_CHECK_DATA_GET_OR_RETURN(o, ptr) \
ELM_CHECK_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_CHECK_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_CHECK_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
#define ELM_CHECK_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_CHECK_CLASS)) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_CHECK_CLASS))) \
return
#endif
#define ELM_CLOCK_DATA_GET_OR_RETURN(o, ptr) \
ELM_CLOCK_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_CLOCK_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_CLOCK_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_CLOCK_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_CLOCK_CLASS)) \
+#define ELM_CLOCK_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_CLOCK_CLASS))) \
return
#endif
#define ELM_COLORSELECTOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_COLORSELECTOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_COLORSELECTOR_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_COLORSELECTOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_COLORSELECTOR_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_COLORSELECTOR_CLASS)) \
+#define ELM_COLORSELECTOR_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_COLORSELECTOR_CLASS))) \
return
#define ELM_COLORSELECTOR_ITEM_CHECK(it) \
#define ELM_CONFORMANT_DATA_GET_OR_RETURN(o, ptr) \
ELM_CONFORMANT_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_CONFORMANT_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_CONFORMANT_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_CONFORMANT_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_CONFORMANT_CLASS)) \
+#define ELM_CONFORMANT_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_CONFORMANT_CLASS))) \
return
#endif
#define ELM_CTXPOPUP_DATA_GET_OR_RETURN(o, ptr) \
ELM_CTXPOPUP_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_CTXPOPUP_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_CTXPOPUP_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_CTXPOPUP_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_CTXPOPUP_CLASS)) \
+#define ELM_CTXPOPUP_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_CTXPOPUP_CLASS))) \
return
#endif
#define ELM_DATETIME_DATA_GET_OR_RETURN(o, ptr) \
ELM_DATETIME_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_DATETIME_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_DATETIME_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_DATETIME_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_DATETIME_CLASS)) \
+#define ELM_DATETIME_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_DATETIME_CLASS))) \
return
#endif
#define ELM_DAYSELECTOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_DAYSELECTOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_DAYSELECTOR_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_DAYSELECTOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_DAYSELECTOR_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_DAYSELECTOR_CLASS)) \
+#define ELM_DAYSELECTOR_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_DAYSELECTOR_CLASS))) \
return
#endif
#define ELM_DISKSELECTOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_DISKSELECTOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_DISKSELECTOR_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_DISKSELECTOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_DISKSELECTOR_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_DISKSELECTOR_CLASS)) \
+#define ELM_DISKSELECTOR_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_DISKSELECTOR_CLASS))) \
return
#define ELM_DISKSELECTOR_ITEM_CHECK(it) \
#define ELM_ENTRY_DATA_GET_OR_RETURN(o, ptr) \
ELM_ENTRY_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_ENTRY_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_ENTRY_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_ENTRY_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_ENTRY_CLASS)) \
+#define ELM_ENTRY_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_ENTRY_CLASS))) \
return
#endif
#define ELM_FILESELECTOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_FILESELECTOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_FILESELECTOR_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_FILESELECTOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_FILESELECTOR_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_FILESELECTOR_CLASS)) \
+#define ELM_FILESELECTOR_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_FILESELECTOR_CLASS))) \
return
#endif
#define ELM_FILESELECTOR_BUTTON_DATA_GET_OR_RETURN(o, ptr) \
ELM_FILESELECTOR_BUTTON_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_FILESELECTOR_BUTTON_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_FILESELECTOR_BUTTON_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_FILESELECTOR_BUTTON_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_FILESELECTOR_BUTTON_CLASS)) \
+#define ELM_FILESELECTOR_BUTTON_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_FILESELECTOR_BUTTON_CLASS))) \
return
#endif
#define ELM_FILESELECTOR_ENTRY_DATA_GET_OR_RETURN(o, ptr) \
ELM_FILESELECTOR_ENTRY_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_FILESELECTOR_ENTRY_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_FILESELECTOR_ENTRY_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_FILESELECTOR_ENTRY_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_FILESELECTOR_ENTRY_CLASS)) \
+#define ELM_FILESELECTOR_ENTRY_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_FILESELECTOR_ENTRY_CLASS))) \
return
#endif
#define ELM_FLIP_DATA_GET_OR_RETURN(o, ptr) \
ELM_FLIP_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_FLIP_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_FLIP_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_FLIP_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_FLIP_CLASS)) \
+#define ELM_FLIP_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_FLIP_CLASS))) \
return
#endif
#define ELM_FLIPSELECTOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_FLIPSELECTOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_FLIPSELECTOR_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_FLIPSELECTOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_FLIPSELECTOR_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_FLIPSELECTOR_CLASS)) \
+#define ELM_FLIPSELECTOR_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_FLIPSELECTOR_CLASS))) \
return
#define ELM_FLIPSELECTOR_ITEM_CHECK(it) \
#define ELM_FRAME_DATA_GET_OR_RETURN(o, ptr) \
ELM_FRAME_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_FRAME_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_FRAME_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_FRAME_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_FRAME_CLASS)) \
+#define ELM_FRAME_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_FRAME_CLASS))) \
return
#endif
#define ELM_GENGRID_DATA_GET_OR_RETURN(o, ptr) \
ELM_GENGRID_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_GENGRID_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_GENGRID_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_GENGRID_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_GENGRID_CLASS)) \
+#define ELM_GENGRID_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_GENGRID_CLASS))) \
return
#define ELM_GENGRID_ITEM_CHECK(it) \
#define ELM_GENLIST_DATA_GET_OR_RETURN(o, ptr) \
ELM_GENLIST_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_GENLIST_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_GENLIST_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_GENLIST_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_GENLIST_CLASS)) \
+#define ELM_GENLIST_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_GENLIST_CLASS))) \
return
#define ELM_GENLIST_ITEM_CHECK(it) \
#define ELM_GLVIEW_DATA_GET(o, sd) \
Elm_Glview_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_GLVIEW_CLASS)
-#define ELM_GLVIEW_DATA_GET_OR_RETURN(o, ptr) \
- ELM_GLVIEW_DATA_GET(o, ptr); \
- if (!ptr) \
- { \
+#define ELM_GLVIEW_DATA_GET_OR_RETURN(o, ptr) \
+ ELM_GLVIEW_DATA_GET(o, ptr); \
+ if (EINA_UNLIKELY(!ptr)) \
+ { \
CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
- return; \
+ o, evas_object_type_get(o)); \
+ return; \
}
-#define ELM_GLVIEW_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
- ELM_GLVIEW_DATA_GET(o, ptr); \
- if (!ptr) \
- { \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
- return val; \
+#define ELM_GLVIEW_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
+ ELM_GLVIEW_DATA_GET(o, ptr); \
+ if (EINA_UNLIKELY(!ptr)) \
+ { \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
+ return val; \
}
-#define ELM_GLVIEW_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_GLVIEW_CLASS)) \
+#define ELM_GLVIEW_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_GLVIEW_CLASS))) \
return
#endif
* @}
*/
-#define ELM_GRID_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_GRID_CLASS)) \
+#define ELM_GRID_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_GRID_CLASS))) \
return
+
#endif
#define ELM_HOVER_DATA_GET_OR_RETURN(o, ptr) \
ELM_HOVER_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_HOVER_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_HOVER_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_HOVER_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_HOVER_CLASS)) \
+#define ELM_HOVER_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_HOVER_CLASS))) \
return
#endif
#define ELM_HOVERSEL_DATA_GET_OR_RETURN(o, ptr) \
ELM_HOVERSEL_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_HOVERSEL_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_HOVERSEL_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_HOVERSEL_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_HOVERSEL_CLASS)) \
+#define ELM_HOVERSEL_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_HOVERSEL_CLASS))) \
return
#define ELM_HOVERSEL_ITEM_CHECK(it) \
#define ELM_ICON_DATA_GET_OR_RETURN(o, ptr) \
ELM_ICON_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_ICON_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_ICON_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_ICON_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_ICON_CLASS)) \
+#define ELM_ICON_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_ICON_CLASS))) \
return
#endif
#define ELM_IMAGE_DATA_GET_OR_RETURN(o, ptr) \
ELM_IMAGE_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_IMAGE_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_IMAGE_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_IMAGE_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_IMAGE_CLASS)) \
+#define ELM_IMAGE_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_IMAGE_CLASS))) \
return
#endif
#define ELM_INDEX_DATA_GET_OR_RETURN(o, ptr) \
ELM_INDEX_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_INDEX_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_INDEX_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_INDEX_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_INDEX_CLASS)) \
+#define ELM_INDEX_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_INDEX_CLASS))) \
return
#define ELM_INDEX_ITEM_CHECK(it) \
#define ELM_INWIN_DATA_GET_OR_RETURN(o, ptr) \
ELM_INWIN_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_INWIN_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_INWIN_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_INWIN_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_WIN_INWIN_CLASS)) \
+#define ELM_INWIN_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_WIN_INWIN_CLASS))) \
return
#endif
#define ELM_LABEL_DATA_GET_OR_RETURN(o, ptr) \
ELM_LABEL_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_LABEL_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_LABEL_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_LABEL_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_LABEL_CLASS)) \
+#define ELM_LABEL_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_LABEL_CLASS))) \
return
#endif
#define ELM_LAYOUT_DATA_GET(o, sd) \
Elm_Layout_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_LAYOUT_CLASS)
-#define ELM_LAYOUT_CHECK(obj) \
- if (!eo_isa(obj, ELM_OBJ_LAYOUT_CLASS)) \
+#define ELM_LAYOUT_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa(obj, ELM_OBJ_LAYOUT_CLASS))) \
return
#endif
#define ELM_LIST_DATA_GET_OR_RETURN(o, ptr) \
ELM_LIST_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_LIST_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_LIST_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_LIST_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_LIST_CLASS)) \
+#define ELM_LIST_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_LIST_CLASS))) \
return
#define ELM_LIST_ITEM_CHECK(it) \
#define ELM_MAP_DATA_GET_OR_RETURN(o, ptr) \
ELM_MAP_DATA_GET(o, ptr); \
- if (!ptr) \
- { \
+ if (EINA_UNLIKELY(!ptr)) \
+ { \
CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
- return; \
+ o, evas_object_type_get(o)); \
+ return; \
}
#define ELM_MAP_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_MAP_DATA_GET(o, ptr); \
- if (!ptr) \
- { \
+ if (EINA_UNLIKELY(!ptr)) \
+ { \
CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
- return val; \
+ o, evas_object_type_get(o)); \
+ return val; \
}
-#define ELM_MAP_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_MAP_CLASS)) \
+#define ELM_MAP_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_MAP_CLASS))) \
return
#endif
#define ELM_MAPBUF_DATA_GET_OR_RETURN(o, ptr) \
ELM_MAPBUF_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_MAPBUF_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_MAPBUF_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_MAPBUF_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_MAPBUF_CLASS)) \
+#define ELM_MAPBUF_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_MAPBUF_CLASS))) \
return
#endif
#define ELM_MENU_DATA_GET_OR_RETURN(o, ptr) \
ELM_MENU_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_MENU_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_MENU_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_MENU_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_MENU_CLASS)) \
+#define ELM_MENU_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_MENU_CLASS))) \
return
#define ELM_MENU_ITEM_CHECK(it) \
#define ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(o, ptr) \
Elm_Multibuttonentry_Smart_Data *ptr = eo_data_scope_get(o, ELM_OBJ_MULTIBUTTONENTRY_CLASS); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
Elm_Multibuttonentry_Smart_Data * ptr = eo_data_scope_get(o, ELM_OBJ_MULTIBUTTONENTRY_CLASS); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_MULTIBUTTONENTRY_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_MULTIBUTTONENTRY_CLASS)) \
+#define ELM_MULTIBUTTONENTRY_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_MULTIBUTTONENTRY_CLASS))) \
return
#define ELM_MULTIBUTTONENTRY_ITEM_CHECK(it) \
#define ELM_NAVIFRAME_DATA_GET_OR_RETURN(o, ptr) \
ELM_NAVIFRAME_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_NAVIFRAME_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_NAVIFRAME_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_NAVIFRAME_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_NAVIFRAME_CLASS)) \
+#define ELM_NAVIFRAME_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_NAVIFRAME_CLASS))) \
return
#define ELM_NAVIFRAME_ITEM_CHECK(it) \
#define ELM_NOTIFY_DATA_GET_OR_RETURN(o, ptr) \
ELM_NOTIFY_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_NOTIFY_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_NOTIFY_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_NOTIFY_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_NOTIFY_CLASS)) \
+#define ELM_NOTIFY_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_NOTIFY_CLASS))) \
return
#endif
#define ELM_PANEL_DATA_GET_OR_RETURN(o, ptr) \
ELM_PANEL_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_PANEL_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_PANEL_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_PANEL_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_PANEL_CLASS)) \
+#define ELM_PANEL_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_PANEL_CLASS))) \
return
#endif
#define ELM_PANES_DATA_GET_OR_RETURN(o, ptr) \
ELM_PANES_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_PANES_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_PANES_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_PANES_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_PANES_CLASS)) \
+#define ELM_PANES_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_PANES_CLASS))) \
return
#endif
#define ELM_PHOTO_DATA_GET_OR_RETURN(o, ptr) \
ELM_PHOTO_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_PHOTO_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_PHOTO_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_PHOTO_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_PHOTO_CLASS)) \
+#define ELM_PHOTO_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_PHOTO_CLASS))) \
return
#endif
#define ELM_PHOTOCAM_DATA_GET_OR_RETURN(o, ptr) \
ELM_PHOTOCAM_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_PHOTOCAM_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_PHOTOCAM_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_PHOTOCAM_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_PHOTOCAM_CLASS)) \
+#define ELM_PHOTOCAM_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_PHOTOCAM_CLASS))) \
return
#endif
#define ELM_PLAYER_DATA_GET_OR_RETURN(o, ptr) \
ELM_PLAYER_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_PLAYER_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_PLAYER_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_PLAYER_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_PLAYER_CLASS)) \
+#define ELM_PLAYER_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_PLAYER_CLASS))) \
return
#endif
#define ELM_PLUG_DATA_GET_OR_RETURN(o, ptr) \
ELM_PLUG_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_PLUG_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_PLUG_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_PLUG_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_PLUG_CLASS)) \
+#define ELM_PLUG_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_PLUG_CLASS))) \
return
#endif
#define ELM_POPUP_DATA_GET_OR_RETURN(o, ptr) \
ELM_POPUP_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_POPUP_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_POPUP_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_POPUP_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_POPUP_CLASS)) \
+#define ELM_POPUP_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_POPUP_CLASS))) \
return
#define ELM_POPUP_ITEM_CHECK(it) \
Elm_Prefs_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PREFS_CLASS)
#define ELM_PREFS_ENTRY(o, sd) \
- if (!sd->data_file || !sd->page) \
+ if (EINA_UNLIKELY(!sd->data_file || !sd->page)) \
{ \
- CRI("You must issue elm_prefs_file_set() on this widget before" \
- " you make this call"); \
+ CRI("You must issue elm_prefs_file_set() on this widget before" \
+ " you make this call"); \
} \
return
#define ELM_PREFS_DATA_GET_OR_RETURN(o, ptr) \
ELM_PREFS_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_PREFS_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_PREFS_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_PREFS_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_PREFS_CLASS)) \
+#define ELM_PREFS_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_PREFS_CLASS))) \
return
#endif
#define ELM_PROGRESSBAR_DATA_GET(o, sd) \
Elm_Progressbar_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_PROGRESSBAR_CLASS)
-#define ELM_PROGRESSBAR_DATA_GET_OR_RETURN(o, ptr) \
- ELM_PROGRESSBAR_DATA_GET(o, ptr); \
- if (!ptr) \
+#define ELM_PROGRESSBAR_DATA_GET_OR_RETURN(o, ptr) \
+ ELM_PROGRESSBAR_DATA_GET(o, ptr); \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_PROGRESSBAR_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_PROGRESSBAR_DATA_GET(o, ptr); \
- if (!ptr) \
- { \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
- return val; \
+ if (EINA_UNLIKELY(!ptr)) \
+ { \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
+ return val; \
}
-#define ELM_PROGRESSBAR_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_PROGRESSBAR_CLASS)) \
+#define ELM_PROGRESSBAR_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_PROGRESSBAR_CLASS))) \
return
#endif
#define ELM_RADIO_DATA_GET_OR_RETURN(o, ptr) \
ELM_RADIO_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_RADIO_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_RADIO_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_RADIO_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_RADIO_CLASS)) \
+#define ELM_RADIO_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_RADIO_CLASS))) \
return
#endif
#define ELM_ROUTE_DATA_GET(o, sd) \
Elm_Route_Smart_Data * sd = eo_data_scope_get(o, ELM_OBJ_ROUTE_CLASS)
-#define ELM_ROUTE_DATA_GET_OR_RETURN(o, ptr) \
- ELM_ROUTE_DATA_GET(o, ptr); \
- if (!ptr) \
+#define ELM_ROUTE_DATA_GET_OR_RETURN(o, ptr) \
+ ELM_ROUTE_DATA_GET(o, ptr); \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_ROUTE_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_ROUTE_DATA_GET(o, ptr); \
- if (!ptr) \
- { \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
- return val; \
+ if (EINA_UNLIKELY(!ptr)) \
+ { \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
+ return val; \
}
-#define ELM_ROUTE_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_ROUTE_CLASS)) \
+#define ELM_ROUTE_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_ROUTE_CLASS))) \
return
#endif
#define ELM_SCROLLER_DATA_GET_OR_RETURN(o, ptr) \
ELM_SCROLLER_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_SCROLLER_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_SCROLLER_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_SCROLLER_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_SCROLLER_CLASS)) \
+#define ELM_SCROLLER_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_SCROLLER_CLASS))) \
return
#endif
#define ELM_SEGMENT_CONTROL_DATA_GET_OR_RETURN(o, ptr) \
ELM_SEGMENT_CONTROL_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_SEGMENT_CONTROL_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_SEGMENT_CONTROL_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_SEGMENT_CONTROL_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_SEGMENT_CONTROL_CLASS)) \
+#define ELM_SEGMENT_CONTROL_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_SEGMENT_CONTROL_CLASS))) \
return
#define ELM_SEGMENT_CONTROL_ITEM_CHECK(it) \
#define ELM_SEPARATOR_DATA_GET_OR_RETURN(o, ptr) \
ELM_SEPARATOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_SEPARATOR_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_SEPARATOR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_SEPARATOR_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_SEPARATOR_CLASS)) \
+#define ELM_SEPARATOR_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_SEPARATOR_CLASS))) \
return
#endif
#define ELM_SLIDER_DATA_GET_OR_RETURN(o, ptr) \
ELM_SLIDER_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_SLIDER_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_SLIDER_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_SLIDER_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_SLIDER_CLASS)) \
+#define ELM_SLIDER_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_SLIDER_CLASS))) \
return
#endif
#define ELM_SLIDESHOW_DATA_GET_OR_RETURN(o, ptr) \
ELM_SLIDESHOW_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_SLIDESHOW_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_SLIDESHOW_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_SLIDESHOW_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_SLIDESHOW_CLASS)) \
+#define ELM_SLIDESHOW_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_SLIDESHOW_CLASS))) \
return
#define ELM_SLIDESHOW_ITEM_CHECK(it) \
#define ELM_SPINNER_DATA_GET_OR_RETURN(o, ptr) \
ELM_SPINNER_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_SPINNER_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_SPINNER_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_SPINNER_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_SPINNER_CLASS)) \
+#define ELM_SPINNER_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_SPINNER_CLASS))) \
return
#endif
* @}
*/
-#define ELM_TABLE_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_TABLE_CLASS)) \
+#define ELM_TABLE_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_TABLE_CLASS))) \
return
#endif
#define ELM_THUMB_DATA_GET_OR_RETURN(o, ptr) \
ELM_THUMB_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_THUMB_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_THUMB_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_THUMB_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_THUMB_CLASS)) \
+#define ELM_THUMB_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_THUMB_CLASS))) \
return
#endif
#define ELM_TOOLBAR_DATA_GET_OR_RETURN(o, ptr) \
ELM_TOOLBAR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_TOOLBAR_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_TOOLBAR_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_TOOLBAR_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_TOOLBAR_CLASS)) \
+#define ELM_TOOLBAR_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_TOOLBAR_CLASS))) \
return
#define ELM_TOOLBAR_ITEM_CHECK(it) \
#define ELM_VIDEO_DATA_GET_OR_RETURN(o, ptr) \
ELM_VIDEO_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_VIDEO_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_VIDEO_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_VIDEO_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_VIDEO_CLASS)) \
+#define ELM_VIDEO_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_VIDEO_CLASS))) \
return
#endif
#define ELM_WEB_DATA_GET_OR_RETURN(o, ptr) \
ELM_WEB_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return; \
}
#define ELM_WEB_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
ELM_WEB_DATA_GET(o, ptr); \
- if (!ptr) \
+ if (EINA_UNLIKELY(!ptr)) \
{ \
- CRI("No widget data for object %p (%s)", \
- o, evas_object_type_get(o)); \
+ CRI("No widget data for object %p (%s)", \
+ o, evas_object_type_get(o)); \
return val; \
}
-#define ELM_WEB_CHECK(obj) \
- if (!eo_isa((obj), ELM_OBJ_WEB_CLASS)) \
+#define ELM_WEB_CHECK(obj) \
+ if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_WEB_CLASS))) \
return
#endif