summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_widget_entry.h
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@gmail.com>2014-01-16 03:33:40 +0900
committerRyuan Choi <ryuan.choi@gmail.com>2014-01-16 03:34:55 +0900
commit37ffb188bbcd19fcefda532d3e7e64ee338d8b54 (patch)
tree18f1a5227d0fae0948fc8882545b16abc16e5bc0 /legacy/elementary/src/lib/elm_widget_entry.h
parent7dd5fe10af0dab5ce7ad5b13ca3ad38007d958cb (diff)
elm_widget_xxx.h: Adopt EINA_UNLIKELY and fix indentation in FOO_DATA_GET macros.
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/lib/elm_widget_entry.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/legacy/elementary/src/lib/elm_widget_entry.h b/legacy/elementary/src/lib/elm_widget_entry.h
index dc2b96d..3e6f78e 100644
--- a/legacy/elementary/src/lib/elm_widget_entry.h
+++ b/legacy/elementary/src/lib/elm_widget_entry.h
@@ -148,24 +148,24 @@ typedef enum _Length_Unit
148 148
149#define ELM_ENTRY_DATA_GET_OR_RETURN(o, ptr) \ 149#define ELM_ENTRY_DATA_GET_OR_RETURN(o, ptr) \
150 ELM_ENTRY_DATA_GET(o, ptr); \ 150 ELM_ENTRY_DATA_GET(o, ptr); \
151 if (!ptr) \ 151 if (EINA_UNLIKELY(!ptr)) \
152 { \ 152 { \
153 CRI("No widget data for object %p (%s)", \ 153 CRI("No widget data for object %p (%s)", \
154 o, evas_object_type_get(o)); \ 154 o, evas_object_type_get(o)); \
155 return; \ 155 return; \
156 } 156 }
157 157
158#define ELM_ENTRY_DATA_GET_OR_RETURN_VAL(o, ptr, val) \ 158#define ELM_ENTRY_DATA_GET_OR_RETURN_VAL(o, ptr, val) \
159 ELM_ENTRY_DATA_GET(o, ptr); \ 159 ELM_ENTRY_DATA_GET(o, ptr); \
160 if (!ptr) \ 160 if (EINA_UNLIKELY(!ptr)) \
161 { \ 161 { \
162 CRI("No widget data for object %p (%s)", \ 162 CRI("No widget data for object %p (%s)", \
163 o, evas_object_type_get(o)); \ 163 o, evas_object_type_get(o)); \
164 return val; \ 164 return val; \
165 } 165 }
166 166
167#define ELM_ENTRY_CHECK(obj) \ 167#define ELM_ENTRY_CHECK(obj) \
168 if (!eo_isa((obj), ELM_OBJ_ENTRY_CLASS)) \ 168 if (EINA_UNLIKELY(!eo_isa((obj), ELM_OBJ_ENTRY_CLASS))) \
169 return 169 return
170 170
171#endif 171#endif