forked from enlightenment/efl
elm_priv.h: Removed null check from ELM_SAFE_FREE because all efl
free/del func + free func get null as valid parameter. Now ELM_SAFE_FREE is less useful than before. It reduced 5 lines to 1 but now it reduces 2 lines to 1.
This commit is contained in:
parent
d58b4401e8
commit
ef6f264e75
|
@ -160,7 +160,7 @@ extern const char *_elm_engines[];
|
|||
#undef MAX
|
||||
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
|
||||
|
||||
#define ELM_SAFE_FREE(_h, _fn) do { if (_h) { _fn((void*)_h); _h = NULL; } } while (0)
|
||||
#define ELM_SAFE_FREE(_h, _fn) do { _fn((void*)_h); _h = NULL; } while (0)
|
||||
|
||||
#define ELM_PRIV_STATIC_VARIABLE_DECLARE(name, signal, type) \
|
||||
static const char name[] = signal;
|
||||
|
|
Loading…
Reference in New Issue