Skip to content

Commit

Permalink
[BKCore] Small additions with new macros
Browse files Browse the repository at this point in the history
  • Loading branch information
brunow committed May 9, 2012
1 parent 79db829 commit 589a643
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Code/Core/BKMacrosDefinitions.h
Expand Up @@ -32,11 +32,13 @@
#define BK_SUPER_DEALLOC

#if BK_HAS_WEAK
#define BK_PROP_WEAK weak
#define BK_UNRETAINED_BLOCK_IVAR __weak __block
#define BK_PROP_WEAK weak
#define BK_WEAK_IVAR __weak
#define BK_UNRETAINED_BLOCK_IVAR __weak __block
#else
#define BK_PROP_WEAK unsafe_unretained
#define BK_UNRETAINED_BLOCK_IVAR __unsafe_unretained
#define BK_PROP_WEAK unsafe_unretained
#define BK_WEAK_IVAR __unsafe_unretained
#define BK_UNRETAINED_BLOCK_IVAR __unsafe_unretained __block
#endif
#else
#define BK_RETAIN(xx) [xx retain];
Expand Down

0 comments on commit 589a643

Please sign in to comment.