Skip to content

Instantly share code, notes, and snippets.

@lawrencelomax
Created March 12, 2013 02:59
Show Gist options
  • Save lawrencelomax/5139946 to your computer and use it in GitHub Desktop.
Save lawrencelomax/5139946 to your computer and use it in GitHub Desktop.
#define recursiveBlock(type_out__, name__, type_in__, block__) \
typedef type_out__ (^type_in_out__##name__)type_in__;\
__weak __block type_in_out__##name__ name__;\
type_in_out__##name__ temp__##name__;\
name__ = temp__##name__ = ^type_out__(type_in__) block__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment