ObjFW  Diff

Differences From Artifact [ce76e78d32]:

To Artifact [dd41eb5b33]:


137
138
139
140
141
142
143
144

145
146
147

148
149


150
151
152
153
154
155
156
157
158
137
138
139
140
141
142
143

144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161







-
+



+


+
+









object_getClass(id obj_)
{
	struct objc_object *obj = (struct objc_object*)obj_;

	return obj->isa;
}

static inline void
static inline Class
object_setClass(id obj_, Class cls)
{
	struct objc_object *obj = (struct objc_object*)obj_;
	Class old = obj->isa;

	obj->isa = cls;

	return old;
}

static inline const char*
object_getClassName(id obj)
{
	return class_getName(object_getClass(obj));
}

#endif