evas Evas.h: Fixed formatting while reading the code.

SVN revision: 70877
This commit is contained in:
Daniel Juyung Seo 2012-05-08 23:05:49 +00:00
parent 339964fd50
commit 123185958e
1 changed files with 27 additions and 27 deletions

View File

@ -9526,33 +9526,33 @@ struct _Evas_Smart_Cb_Description
* @ingroup Evas_Smart_Group * @ingroup Evas_Smart_Group
*/ */
#define EVAS_SMART_SUBCLASS_NEW(smart_name, prefix, api_type, parent_type, parent_func, cb_desc) \ #define EVAS_SMART_SUBCLASS_NEW(smart_name, prefix, api_type, parent_type, parent_func, cb_desc) \
static const parent_type * prefix##_parent_sc = NULL; \ static const parent_type * prefix##_parent_sc = NULL; \
static void prefix##_smart_set_user(api_type *api); \ static void prefix##_smart_set_user(api_type *api); \
static void prefix##_smart_set(api_type *api) \ static void prefix##_smart_set(api_type *api) \
{ \ { \
Evas_Smart_Class *sc; \ Evas_Smart_Class *sc; \
if (!(sc = (Evas_Smart_Class *)api)) \ if (!(sc = (Evas_Smart_Class *)api)) \
return; \ return; \
if (!prefix##_parent_sc) \ if (!prefix##_parent_sc) \
prefix##_parent_sc = parent_func(); \ prefix##_parent_sc = parent_func(); \
evas_smart_class_inherit(sc, prefix##_parent_sc); \ evas_smart_class_inherit(sc, prefix##_parent_sc); \
prefix##_smart_set_user(api); \ prefix##_smart_set_user(api); \
} \ } \
static Evas_Smart * prefix##_smart_class_new(void) \ static Evas_Smart * prefix##_smart_class_new(void) \
{ \ { \
static Evas_Smart *smart = NULL; \ static Evas_Smart *smart = NULL; \
static api_type api; \ static api_type api; \
if (!smart) \ if (!smart) \
{ \ { \
Evas_Smart_Class *sc = (Evas_Smart_Class *)&api; \ Evas_Smart_Class *sc = (Evas_Smart_Class *)&api; \
memset(&api, 0, sizeof(api_type)); \ memset(&api, 0, sizeof(api_type)); \
sc->version = EVAS_SMART_CLASS_VERSION; \ sc->version = EVAS_SMART_CLASS_VERSION; \
sc->name = smart_name; \ sc->name = smart_name; \
sc->callbacks = cb_desc; \ sc->callbacks = cb_desc; \
prefix##_smart_set(&api); \ prefix##_smart_set(&api); \
smart = evas_smart_class_new(sc); \ smart = evas_smart_class_new(sc); \
} \ } \
return smart; \ return smart; \
} }
/** /**