Skip to content

Instantly share code, notes, and snippets.

@jamztang
Created October 30, 2014 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamztang/91007354c0228a3425c0 to your computer and use it in GitHub Desktop.
Save jamztang/91007354c0228a3425c0 to your computer and use it in GitHub Desktop.
A simple @keypath marco
// usage: @keypath(arg)
// like how you use @selector(arg)
// For a full implementation, checkout https://github.com/jspahrsummers/libextobjc
#define keypath(PATH) \
(((\
NSStringFromSelector(@selector(PATH))\
), # PATH))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment