19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# import <objc/runtime.h>
#endif
#import "OFBlock.h"
#import "OFExceptions.h"
#import "atomic.h"
/// \cond internal
@protocol RetainRelease
- retain;
- (void)release;
@end
/// \endcond
#if defined(OF_GNU_RUNTIME) || defined(OF_OBJFW_RUNTIME)
struct objc_abi_class {
struct objc_abi_metaclass *metaclass;
const char *superclass, *name;
unsigned long version, info, instance_size;
void *ivars, *methodlist, *dtable, *subclass_list, *sibling_class;
|
<
<
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# import <objc/runtime.h>
#endif
#import "OFBlock.h"
#import "OFExceptions.h"
#import "atomic.h"
@protocol RetainRelease
- retain;
- (void)release;
@end
#if defined(OF_GNU_RUNTIME) || defined(OF_OBJFW_RUNTIME)
struct objc_abi_class {
struct objc_abi_metaclass *metaclass;
const char *superclass, *name;
unsigned long version, info, instance_size;
void *ivars, *methodlist, *dtable, *subclass_list, *sibling_class;
|
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
|
free(obj);
}
break;
}
}
/// \cond internal
@implementation OFBlock
#if defined(OF_APPLE_RUNTIME) && !defined(__OBJC2__)
+ (void)load
{
Class tmp;
/*
|
<
|
242
243
244
245
246
247
248
249
250
251
252
253
254
255
|
free(obj);
}
break;
}
}
@implementation OFBlock
#if defined(OF_APPLE_RUNTIME) && !defined(__OBJC2__)
+ (void)load
{
Class tmp;
/*
|
406
407
408
409
410
411
412
413
|
* Send a message to the class to ensure it's initialized. Otherwise it
* it might not get initialized as blocks are preallocated.
*/
[self class];
}
@end
#endif
/// \endcond
|
<
|
403
404
405
406
407
408
409
|
* Send a message to the class to ensure it's initialized. Otherwise it
* it might not get initialized as blocks are preallocated.
*/
[self class];
}
@end
#endif
|