18OF_ASSUME_NONNULL_BEGIN
26+ (instancetype)
alloc OF_UNAVAILABLE;
27- (instancetype)
init OF_UNAVAILABLE;
30OF_SUBCLASSING_RESTRICTED
34OF_SUBCLASSING_RESTRICTED
35@interface OFGlobalBlock:
OFBlock
38OF_SUBCLASSING_RESTRICTED
39@interface OFMallocBlock:
OFBlock
45extern void *_Nullable _Block_copy(
const void *_Nullable);
46extern void _Block_release(
const void *_Nullable);
48# if defined(OF_WINDOWS) && \
49 (defined(OF_NO_SHARED) || defined(OF_COMPILING_OBJFW))
55extern __declspec(dllexport)
struct objc_class _NSConcreteStackBlock;
56extern __declspec(dllexport)
struct objc_class _NSConcreteGlobalBlock;
57extern __declspec(dllexport)
void _Block_object_assign(
void *,
const void *,
59extern __declspec(dllexport)
void _Block_object_dispose(
const void *,
67# define Block_copy(...) \
68 ((__typeof__(__VA_ARGS__))_Block_copy((const void *)(__VA_ARGS__)))
71# define Block_release(...) _Block_release((const void *)(__VA_ARGS__))
The class for all blocks, since all blocks are also objects.
Definition OFBlock.h:26
The root class for all other classes inside ObjFW.
Definition OFObject.h:688
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:586
instancetype alloc()
Allocates memory for an instance of the class and sets up the memory pool for the object.
Definition OFObject.m:438
A pointer to a class.
Definition private.h:33