18 OF_ASSUME_NONNULL_BEGIN
26 + (instancetype)
alloc OF_UNAVAILABLE;
27 - (instancetype)
init OF_UNAVAILABLE;
30 OF_SUBCLASSING_RESTRICTED
31 @interface OFStackBlock:
OFBlock 34 OF_SUBCLASSING_RESTRICTED
35 @interface OFGlobalBlock:
OFBlock 38 OF_SUBCLASSING_RESTRICTED
39 @interface OFMallocBlock:
OFBlock 45 extern void *_Nullable _Block_copy(
const void *_Nullable);
46 extern void _Block_release(
const void *_Nullable);
48 # if defined(OF_WINDOWS) && \ 49 (defined(OF_NO_SHARED) || defined(OF_COMPILING_OBJFW)) 55 extern __declspec(dllexport)
struct objc_class _NSConcreteStackBlock;
56 extern __declspec(dllexport)
struct objc_class _NSConcreteGlobalBlock;
57 extern __declspec(dllexport)
void _Block_object_assign(
void *,
const void *,
59 extern __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 root class for all other classes inside ObjFW.
Definition: OFObject.h:686
A pointer to a class.
Definition: private.h:33
instancetype init()
Initializes an already allocated object.
Definition: OFObject.m:585
instancetype alloc()
Allocates memory for an instance of the class and sets up the memory pool for the object...
Definition: OFObject.m:437
The class for all blocks, since all blocks are also objects.
Definition: OFBlock.h:25