summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-09-16 17:34:39 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-09-18 17:23:39 +0900
commitcf3b9ba6fa9df3eae0f41f73e0ea1d44f8453624 (patch)
tree487820409a2bc3415d174b8eec944671f9e69ea6
parent2c362ba7c2f8bbad9b4db97284f4e6e27cb2405b (diff)
elm_priv: Add macro ELM_SAFE_DEL using eo_del
Similar to ELM_SAFE_FREE except it just calls eo_del.
-rw-r--r--src/lib/elm_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_priv.h b/src/lib/elm_priv.h
index 48f2267b7..ec1af64a2 100644
--- a/src/lib/elm_priv.h
+++ b/src/lib/elm_priv.h
@@ -171,6 +171,7 @@ extern const char *_elm_engines[];
171 171
172 172
173#define ELM_SAFE_FREE(_h, _fn) do { _fn((void*)_h); _h = NULL; } while (0) 173#define ELM_SAFE_FREE(_h, _fn) do { _fn((void*)_h); _h = NULL; } while (0)
174#define ELM_SAFE_DEL(_h) do { eo_del(_h); _h = NULL; } while (0)
174 175
175#define ELM_PRIV_STATIC_VARIABLE_DECLARE(name, signal, type) \ 176#define ELM_PRIV_STATIC_VARIABLE_DECLARE(name, signal, type) \
176 static const char name[] = signal; 177 static const char name[] = signal;