diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2014-06-09 17:30:07 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2014-06-09 17:30:07 +0000 |
commit | a8c45b2d81b4a1ae00440c472659f8728c303693 (patch) | |
tree | a91160c9d787089f2a01212314d447d68a44e514 /DebugUtils | |
parent | 812a1463b42c00a337af9637e47c7d6368d6f88d (diff) |
Fix up GTMMethodCheck to work with ENABLE_STRICT_OBJC_MSGSEND=YES.
Also ignores another class which does not inherit from NSObject.
DELTA=4 (3 added, 0 deleted, 1 changed)
DELTA_BY_EXTENSION=m=4
Diffstat (limited to 'DebugUtils')
-rw-r--r-- | DebugUtils/GTMMethodCheck.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/DebugUtils/GTMMethodCheck.m b/DebugUtils/GTMMethodCheck.m index 650d255..c18ada8 100644 --- a/DebugUtils/GTMMethodCheck.m +++ b/DebugUtils/GTMMethodCheck.m @@ -52,6 +52,7 @@ static BOOL ConformsToNSObjectProtocol(Class cls) { #if GTM_IPHONE_SDK || (strcmp(className, "Object") == 0) || (strcmp(className, "UIKeyboardCandidateUtilities") == 0) + || (strcmp(className, "JSExport") == 0) #endif ) { return YES; @@ -157,7 +158,9 @@ void GTMMethodCheckMethodChecker(void) { // COV_NF_END } if (methodCheckerInfo.dli_fbase == methodInfo.dli_fbase) { - objc_msgSend(cls, selector); + typedef void (*GTMMethodCheckMethod)(Class, SEL); + GTMMethodCheckMethod func = (GTMMethodCheckMethod)objc_msgSend; + func(cls, selector); } } } |