Skip to content

Instantly share code, notes, and snippets.

@cbarrett
Created March 16, 2011 04:25
Show Gist options
  • Save cbarrett/872016 to your computer and use it in GitHub Desktop.
Save cbarrett/872016 to your computer and use it in GitHub Desktop.
I think this was it. I stopped using it because it made Xcode 3 put all errors or warnings for the block on the line of the macro invocation; total nonstarter.
#define BLOCK(...) ({ __block __typeof__(self) bself = self; __VA_ARGS__(); )}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment