Skip to content

Instantly share code, notes, and snippets.

@Air-Craft
Last active August 29, 2015 14:05
Show Gist options
  • Save Air-Craft/27cd26dd24e91fe779c7 to your computer and use it in GitHub Desktop.
Save Air-Craft/27cd26dd24e91fe779c7 to your computer and use it in GitHub Desktop.
Recursive blocks without compiler warning in #Objective-C #intermediate
void (^doIt)(id retryBlk);
@weakify(self);
doIt = ^(id retryBlk){
void (^retry)(id retryBlk) = retryBlk;
retry(retryBlk);
};
doIt(doIt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment