22OF_ASSUME_NONNULL_BEGIN
30+ (instancetype)
alloc OF_UNAVAILABLE;
31- (instancetype)
init OF_UNAVAILABLE;
34OF_SUBCLASSING_RESTRICTED
38OF_SUBCLASSING_RESTRICTED
39@interface OFGlobalBlock:
OFBlock
42OF_SUBCLASSING_RESTRICTED
43@interface OFMallocBlock:
OFBlock
49extern void *_Nullable _Block_copy(
const void *_Nullable);
50extern void _Block_release(
const void *_Nullable);
52# if defined(OF_WINDOWS) && \
53 (defined(OF_NO_SHARED) || defined(OF_COMPILING_OBJFW))
59extern __declspec(dllexport)
struct objc_class _NSConcreteStackBlock;
60extern __declspec(dllexport)
struct objc_class _NSConcreteGlobalBlock;
61extern __declspec(dllexport)
void _Block_object_assign(
void *,
const void *,
63extern __declspec(dllexport)
void _Block_object_dispose(
const void *,
71# define Block_copy(...) \
72 ((__typeof__(__VA_ARGS__))_Block_copy((const void *)(__VA_ARGS__)))
75# define Block_release(...) _Block_release((const void *)(__VA_ARGS__))
The class for all blocks, since all blocks are also objects.
Definition OFBlock.h:30
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:652
instancetype alloc()
Allocates memory for an instance of the class and sets up the memory pool for the object.
Definition OFObject.m:504
A pointer to a class.
Definition private.h:37