Skip to content
Browse files

Added ASSIGNMUTABLECOPY() to UKHelperMacros.

  • Loading branch information...
1 parent 4b07924 commit a1d334c8b827a86aa511deaf1829747ce74b65b1 @uliwitness committed Oct 29, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 UKHelperMacros.h
View
5 UKHelperMacros.h
@@ -71,6 +71,11 @@
(targ) = [(newval) retain];\
[__UKHELPERMACRO_OLDTARG release];\
} while(0)
+#define ASSIGNMUTABLECOPY(targ,newval) do {\
+ NSObject* __UKHELPERMACRO_OLDTARG = (NSObject*)(targ);\
+ (targ) = [(newval) mutableCopy];\
+ [__UKHELPERMACRO_OLDTARG release];\
+ } while(0)
#define DESTROY(targ) do {\
NSObject* __UKHELPERMACRO_OLDTARG = (NSObject*)(targ);\

0 comments on commit a1d334c

Please sign in to comment.
Something went wrong with that request. Please try again.