Created
February 3, 2013 08:33
-
-
Save bklimt/4700955 to your computer and use it in GitHub Desktop.
Objective-C Blocks Example E
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
typedef void (^eBlock)(); | |
eBlock exampleE_getBlock() { | |
char e = 'E'; | |
void (^block)() = ^{ | |
printf("%c\n", e); | |
}; | |
return block; | |
} | |
void exampleE() { | |
eBlock block = exampleE_getBlock(); | |
block(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment