ecore: allow for not specifying any static string in Efl.Model.properties.get helper.

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D7485
This commit is contained in:
Cedric BAIL 2018-12-13 10:01:34 -08:00 committed by Cedric BAIL
parent d11e0b036e
commit df2629a1c9
1 changed files with 2 additions and 3 deletions

View File

@ -2,13 +2,12 @@
#define EFL_MODEL_COMPOSITE_PROPERTIES(name, dyn, sta, ...) \
EFL_MODEL_COMPOSITE_PROPERTIES_SUPER(name, NULL, NULL, (dyn), sta, ##__VA_ARGS__)
#define EFL_MODEL_COMPOSITE_PROPERTIES_SUPER(name, obj, klass, dyn, sta, ...) \
#define EFL_MODEL_COMPOSITE_PROPERTIES_SUPER(name, obj, klass, dyn, ...) \
Eina_Iterator *name; \
do \
{ \
static const char *static_props__[] = { \
sta, \
##__VA_ARGS__ \
__VA_ARGS__ \
}; \
name = _efl_model_composite_properties_mix( \
((obj) ? efl_model_properties_get(efl_super((obj), (klass))) : NULL), \