const Elm_Scrollable_Smart_Interface * iface; \
iface = evas_object_smart_interface_get(obj, ELM_SCROLLABLE_IFACE_NAME);
+#define ELM_SCROLLABLE_CHECK(obj, ...) \
+ const Elm_Scrollable_Smart_Interface * s_iface = \
+ evas_object_smart_interface_get(obj, ELM_SCROLLABLE_IFACE_NAME); \
+ \
+ if (!s_iface) \
+ { \
+ ERR("Passing object (%p) of type '%s' in function %s, but it doesn't" \
+ " implement the Elementary scrollable interface.", obj, \
+ elm_widget_type_get(obj), __func__); \
+ if (getenv("ELM_ERROR_ABORT")) abort(); \
+ return __VA_ARGS__; \
+ }
+
/**
* @}
*/
if (!obj || !elm_widget_type_check((obj), SCROLLER_SMART_NAME, __func__)) \
return
-#define ELM_SCROLLABLE_CHECK(obj, ...) \
- const Elm_Scrollable_Smart_Interface * s_iface = \
- evas_object_smart_interface_get(obj, ELM_SCROLLABLE_IFACE_NAME); \
- \
- if (!s_iface) \
- { \
- ERR("Passing object (%p) of type '%s' in function %s, but it doesn't" \
- " implement the Elementary scrollable interface.", obj, \
- elm_widget_type_get(obj), __func__); \
- if (getenv("ELM_ERROR_ABORT")) abort(); \
- return __VA_ARGS__; \
- }
struct _Elm_Scroller_Smart_Data
{