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)
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);
597 */ 597 */
598EAPI const Eo_Class *eo_class_get(const Eo *obj); 598EAPI const Eo_Class *eo_class_get(const Eo *obj);
599 599
600#define eo_self __eo_self
601
600#define _eo_add_common(klass, parent, is_ref, ...) \ 602#define _eo_add_common(klass, parent, is_ref, ...) \
601 ({ \ 603 ({ \
602 Eo * const eoid = _eo_add_internal_start(__FILE__, __LINE__, klass, parent, is_ref); \ 604 Eo * const __eo_self = _eo_add_internal_start(__FILE__, __LINE__, klass, parent, is_ref); \
603 __VA_ARGS__; \ 605 __VA_ARGS__; \
604 (Eo *) _eo_add_end(eoid); \ 606 (Eo *) _eo_add_end(eo_self); \
605 }) 607 })
606 608
607/** 609/**