Skip to content

Instantly share code, notes, and snippets.

@Machx
Created September 9, 2009 02:40
Show Gist options
  • Save Machx/183420 to your computer and use it in GitHub Desktop.
Save Machx/183420 to your computer and use it in GitHub Desktop.
typedef void (^MyBlock)(void);
MyBlock inBlock = ^{
for (int i = 0; i < 10; i++) {
NSLog(@"Doing Something with... %i",i);
}
}; //<-- remove this semicolon here...
inBlock(); //<-- ..and clang says it's missing a ';' here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment