summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-09-26 23:33:19 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-09-26 23:33:19 +0200
commit992ab9036ac55a04d3b39e2771339c18879c57e9 (patch)
treedb83c588677954fac7f6d0ac86b519bbb79019d3
parentf1f38f813c17e0a89850ebe36136106fca1f8c8c (diff)
downloadefl-992ab9036ac55a04d3b39e2771339c18879c57e9.tar.gz
eo: add union _Eo to unify objects and classes internal pointers
-rw-r--r--src/lib/eo/eo_private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/eo/eo_private.h b/src/lib/eo/eo_private.h
index fa61526164..1d547564c2 100644
--- a/src/lib/eo/eo_private.h
+++ b/src/lib/eo/eo_private.h
@@ -58,6 +58,10 @@ typedef uintptr_t Eo_Id;
typedef struct _Eo_Class _Eo_Class;
typedef struct _Eo_Object _Eo_Object;
typedef struct _Eo_Handle _Eo_Handle;
+typedef union _Eo {
+ _Eo_Object *obj;
+ _Eo_Class *klass;
+} _Eo;
/* Retrieves the pointer to the object from the id */
static inline _Eo_Object *_eo_obj_pointer_get(const Eo_Id obj_id);