Created
February 17, 2017 08:38
-
-
Save steipete/57e95fbde1d164cb0be89793cf2545ad to your computer and use it in GitHub Desktop.
PSPDF_KEYPATH without all the warnings
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
#define PSPDF_KEYPATH(object, property) (^{ \ | |
_Pragma("clang diagnostic push") \ | |
_Pragma("clang diagnostic ignored \"-Wunreachable-code\"") \ | |
_Pragma("clang diagnostic ignored \"-Wimplicit-retain-self\"") \ | |
return ((void)(NO && ((void)object.property, NO)), @#property); \ | |
_Pragma("clang diagnostic pop") \ | |
}()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment