replace E_CHECK_XXX with EINA_SAFETY_ON_XXX 31/35731/2
authorBoram Park <boram1288.park@samsung.com>
Tue, 24 Feb 2015 05:42:28 +0000 (14:42 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Tue, 24 Feb 2015 05:50:25 +0000 (21:50 -0800)
Change-Id: I1e53ddc2c330db9b39588d442b0822c1107ea731

src/e_mod_atoms.c
src/e_mod_utils.h

index 1938d86..169eae8 100644 (file)
@@ -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);
 
index b7ea683..256c5f5 100644 (file)
@@ -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