Created
August 18, 2012 05:24
-
-
Save mayoff/3384659 to your computer and use it in GitHub Desktop.
Make objc_msgSend without a cast give a warning
This file contains hidden or 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 objc_msgSend(...) (objc_msgSend_without_cast())(__VA_ARGS__) | |
static inline id (*objc_msgSend_without_cast(void))(id, SEL, ...) __attribute__((deprecated("objc_msgSend must be cast to the correct type"))); | |
static inline id (*objc_msgSend_without_cast(void))(id, SEL, ...) { | |
return objc_msgSend; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment