Eo: eo_add(), change current object's name (api).

It was temporarily eoid, change it to eo_self which is more
descriptive. In this process I also made it a macro to prepare
for the proposed changes on the ML for the fallback implementation
for compilers that don't support the compound statements returning
values gcc extension.
This commit is contained in:
Tom Hacohen 2016-03-15 14:03:00 +00:00
parent 2b249423e7
commit bd2a9015c3
1 changed files with 4 additions and 2 deletions

View File

@ -597,11 +597,13 @@ EAPI Eo *eo_super(const Eo *obj, const Eo_Class *cur_klass);
*/
EAPI const Eo_Class *eo_class_get(const Eo *obj);
#define eo_self __eo_self
#define _eo_add_common(klass, parent, is_ref, ...) \
({ \
Eo * const eoid = _eo_add_internal_start(__FILE__, __LINE__, klass, parent, is_ref); \
Eo * const __eo_self = _eo_add_internal_start(__FILE__, __LINE__, klass, parent, is_ref); \
__VA_ARGS__; \
(Eo *) _eo_add_end(eoid); \
(Eo *) _eo_add_end(eo_self); \
})
/**