Created
October 30, 2014 11:14
-
-
Save jamztang/91007354c0228a3425c0 to your computer and use it in GitHub Desktop.
A simple @keypath marco
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
// 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