Skip to content

Instantly share code, notes, and snippets.

@pita5
Created October 19, 2012 14:19
Show Gist options
  • Save pita5/3918457 to your computer and use it in GitHub Desktop.
Save pita5/3918457 to your computer and use it in GitHub Desktop.
dispatch_block_t block;
if (x) {
struct Block __tmp_1 = ...; // setup details
block = &__tmp_1;
} else {
struct Block __tmp_2 = ...; // setup details
block = &__tmp_2;
}
block(); // unsafe!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment