aboutsummaryrefslogtreecommitdiff
path: root/DebugUtils/GTMMethodCheck.m
diff options
context:
space:
mode:
Diffstat (limited to 'DebugUtils/GTMMethodCheck.m')
-rw-r--r--DebugUtils/GTMMethodCheck.m5
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);
}
}
}