summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-15 14:03:00 +0000
committerTom Hacohen <tom@stosb.com>2016-03-15 15:22:17 +0000
commitbd2a9015c354073a4bd378d5c5362397f2aee6e4 (patch)
treebd4a24a732f9fd0436f9f784331b1e56eb68dec0
parent2b249423e7bfa422256c6828763029065ebf232b (diff)
downloadefl-bd2a9015c354073a4bd378d5c5362397f2aee6e4.tar.gz
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.
-rw-r--r--src/lib/eo/Eo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index 4ac541fa4b..13d82836fd 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -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); \
})
/**