From: Boram Park Date: Tue, 24 Feb 2015 05:42:28 +0000 (+0900) Subject: replace E_CHECK_XXX with EINA_SAFETY_ON_XXX X-Git-Tag: accepted/tizen/common/20150224.150915~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a5233020f69a5b78bab3f81ecb714f4d3d966c4;p=platform%2Fcore%2Fuifw%2Fe-mod-tizen-wm-policy.git replace E_CHECK_XXX with EINA_SAFETY_ON_XXX Change-Id: I1e53ddc2c330db9b39588d442b0822c1107ea731 --- diff --git a/src/e_mod_atoms.c b/src/e_mod_atoms.c index 1938d86..169eae8 100644 --- a/src/e_mod_atoms.c +++ b/src/e_mod_atoms.c @@ -17,7 +17,7 @@ e_mod_pol_atoms_init(void) n = (sizeof(atom_names) / sizeof(char *)); atoms = E_NEW(Ecore_X_Atom, n); - E_CHECK_GOTO(atoms, cleanup); + EINA_SAFETY_ON_NULL_GOTO(atoms, cleanup); ecore_x_atoms_get(atom_names, n, atoms); diff --git a/src/e_mod_utils.h b/src/e_mod_utils.h index b7ea683..256c5f5 100644 --- a/src/e_mod_utils.h +++ b/src/e_mod_utils.h @@ -1,8 +1,4 @@ #ifndef E_MOD_UTILS_H #define E_MOD_UTILS_H -#define E_CHECK(x) do {if (!(x)) return; } while(0) -#define E_CHECK_RETURN(x, r) do {if (!(x)) return (r);} while(0) -#define E_CHECK_GOTO(x, l) do {if (!(x)) goto l; } while(0) - #endif