ector: reorder macro for easier reuse. 87/43187/1
authorCedric BAIL <cedric@osg.samsung.com>
Sun, 18 Jan 2015 16:22:53 +0000 (17:22 +0100)
committerSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 8 Jul 2015 02:01:19 +0000 (11:01 +0900)
Change-Id: Iad64da766b9877d1bb39a92f29ac41d9862e7c52

src/lib/ector/cairo/ector_cairo_private.h

index 6777370..eef2d10 100644 (file)
@@ -9,12 +9,12 @@ struct _Ector_Cairo_Surface_Data
    cairo_t *cairo;
 };
 
+#define CHECK_CAIRO(Parent) (!(Parent && Parent->cairo))
+
 #define USE(Obj, Sym, Error)                     \
   if (!Sym) _ector_cairo_symbol_get(Obj, #Sym);  \
   if (!Sym) return Error;
 
-#define CHECK_CAIRO(Parent) (!(Parent && Parent->cairo))
-
 static inline void *
 _ector_cairo_symbol_get(Eo *obj, const char *name)
 {