ObjFW  Check-in [c2a3a3e078]

Overview
Comment:runtime.h: Fix C++.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c2a3a3e07844c954c72495c9c3f7abf6c727b03fada843a6d94a2c45c5bc0736
User & Date: js on 2012-08-11 11:55:41
Other Links: manifest | tags
Context
2012-08-11
13:37
atomic.h: Add cc to clobber list where necessary. check-in: abd6fadbdb user: js tags: trunk
11:55
runtime.h: Fix C++. check-in: c2a3a3e078 user: js tags: trunk
08:39
OFThread: Set status before spawning thread. check-in: e8f12e5de9 user: js tags: trunk
Changes

Modified src/runtime/runtime.h from [47cf79266e] to [802118dfd1].

70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
struct objc_selector {
	uintptr_t uid;
	const char *types;
};

struct objc_super {
	id self;
	Class class;
};

struct objc_method {
	struct objc_selector sel;
	IMP imp;
};








|







70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
struct objc_selector {
	uintptr_t uid;
	const char *types;
};

struct objc_super {
	id self;
	Class cls;
};

struct objc_method {
	struct objc_selector sel;
	IMP imp;
};

218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
{
	return class_getName(object_getClass(obj));
}

static inline BOOL
class_isMetaClass(Class cls_)
{
	struct objc_class *cls = cls_;

	return (cls->info & OBJC_CLASS_INFO_METACLASS);
}

#undef OBJC_BRIDGE

#endif







|







218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
{
	return class_getName(object_getClass(obj));
}

static inline BOOL
class_isMetaClass(Class cls_)
{
	struct objc_class *cls = (struct objc_class*)cls_;

	return (cls->info & OBJC_CLASS_INFO_METACLASS);
}

#undef OBJC_BRIDGE

#endif