ObjFW  Check-in [ff381fe8ba]

Overview
Comment:Add _NSPrintForDebugger.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ff381fe8ba864a11e225ec91d5a019ee97443c394fc4ad915a127bf644b112d7
User & Date: js on 2011-04-24 18:30:14
Other Links: manifest | tags
Context
2011-04-24
21:50
Add -[finalize] to all classes which would require it once we have GC. check-in: 07b3d0e8de user: js tags: trunk
18:30
Add _NSPrintForDebugger. check-in: ff381fe8ba user: js tags: trunk
2011-04-23
22:26
Minor style improvements. check-in: a0f0c381b2 user: js tags: trunk
Changes

Modified src/OFObject.m from [f33de6810c] to [e4b8e27eb3].

111
112
113
114
115
116
117






118
119
120
121
122
123
124
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130







+
+
+
+
+
+







#ifndef HAVE_OBJC_ENUMERATIONMUTATION
void
objc_enumerationMutation(id object)
{
	enumeration_mutation_handler(object);
}
#endif

const char*
_NSPrintForDebugger(id object)
{
	return [[object description] cString];
}

@implementation OFObject
+ (void)load
{
#ifdef NEED_OBJC_SYNC_INIT
	if (!objc_sync_init()) {
		fputs("Runtime error: objc_sync_init() failed!\n", stderr);