22 OF_ASSUME_NONNULL_BEGIN
30 + (instancetype)
alloc OF_UNAVAILABLE;
31 - (instancetype)
init OF_UNAVAILABLE;
34 OF_SUBCLASSING_RESTRICTED
35 @interface OFStackBlock:
OFBlock 38 OF_SUBCLASSING_RESTRICTED
39 @interface OFGlobalBlock:
OFBlock 42 OF_SUBCLASSING_RESTRICTED
43 @interface OFMallocBlock:
OFBlock 49 extern void *_Nullable _Block_copy(
const void *_Nullable);
50 extern void _Block_release(
const void *_Nullable);
52 # if defined(OF_WINDOWS) && \ 53 (defined(OF_NO_SHARED) || defined(OF_COMPILING_OBJFW)) 59 extern __declspec(dllexport)
struct objc_class _NSConcreteStackBlock;
60 extern __declspec(dllexport)
struct objc_class _NSConcreteGlobalBlock;
61 extern __declspec(dllexport)
void _Block_object_assign(
void *,
const void *,
63 extern __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 root class for all other classes inside ObjFW.
Definition: OFObject.h:690
A pointer to a class.
Definition: private.h:37
instancetype init()
Initializes an already allocated object.
Definition: OFObject.m:696
instancetype alloc()
Allocates memory for an instance of the class and sets up the memory pool for the object...
Definition: OFObject.m:548
The class for all blocks, since all blocks are also objects.
Definition: OFBlock.h:29