seoz pushed a commit to branch master.
commit c91511cb7f65b1d1cdd5be16c6a1bbc7a6bb5334
Author: Tae-Hwan Kim <[email protected]>
Date: Tue May 7 19:41:15 2013 +0900
[Genlist] Fix bug when error abort is enabled.
---
src/lib/elm_genlist.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index abdcd6c..4f5a737 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -32,9 +32,11 @@ EAPI Eo_Op ELM_OBJ_GENLIST_BASE_ID = EO_NOOP;
#define SWIPE_TIME 0.4
#define SCR_HOLD_TIME 0.1
-#define ERR_ABORT(_msg) \
- ERR(_msg); \
- if (getenv("ELM_ERROR_ABORT")) abort();
+#define ERR_ABORT(_msg) \
+ do { \
+ ERR(_msg); \
+ if (getenv("ELM_ERROR_ABORT")) abort(); \
+ } while (0)
static const char SIG_ACTIVATED[] = "activated";
static const char SIG_CLICKED_DOUBLE[] = "clicked,double";
--
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may