Created
May 9, 2011 01:59
-
-
Save jspahrsummers/961913 to your computer and use it in GitHub Desktop.
I don't think I'll actually do this, but it was fun to come up with.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// syntactic sugar for @onExit | |
#define releaseOnExit \ | |
ext_saveSelf]; @onExit { [ext_releaseObj release]; }; [(id)nil self | |
NSMutableString *str = [[@"foo" mutableCopy] releaseOnExit]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment