diff options
Diffstat (limited to 'test/ARCMT/Common.h')
-rw-r--r-- | test/ARCMT/Common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ARCMT/Common.h b/test/ARCMT/Common.h index ed48949..b388eca 100644 --- a/test/ARCMT/Common.h +++ b/test/ARCMT/Common.h @@ -10,6 +10,7 @@ #define NS_INLINE static __inline__ __attribute__((always_inline)) #define nil ((void*) 0) +#define NULL ((void*)0) typedef int BOOL; typedef unsigned NSUInteger; @@ -102,3 +103,8 @@ NS_INLINE id CFBridgingRelease(CFTypeRef CF_CONSUMED X) { } #endif + +void *_Block_copy(const void *aBlock); +void _Block_release(const void *aBlock); +#define Block_copy(...) ((__typeof(__VA_ARGS__))_Block_copy((const void *)(__VA_ARGS__))) +#define Block_release(...) _Block_release((const void *)(__VA_ARGS__)) |