Source/AIDictionaryDebug.m
branchadium-1.5.10.5
changeset 6003 6e8c6761ee0d
parent 2046 6bc140dd9efb
--- a/Source/AIDictionaryDebug.m	Thu Nov 14 16:26:13 2019 -0500
+++ b/Source/AIDictionaryDebug.m	Thu Nov 14 18:10:18 2019 -0500
@@ -57,7 +57,8 @@
 	NSAssert3(object != nil, @"%@: Attempted to set %@ for %@",self,object,key);
 	NSAssert3(key != nil, @"%@: Attempted to set %@ for %@",self,object,key);
 
-	method_invoke(self, class_getInstanceMethod([AIDictionaryDebug class], @selector(setObject:forKey:)), object, key);
+    static void (*_setObjectForKey_method_invoke)(id, Method, id, id) = (void (*)(id, Method, id, id)) method_invoke;
+	_setObjectForKey_method_invoke(self, class_getInstanceMethod([AIDictionaryDebug class], @selector(setObject:forKey:)), object, key);
 }
 
 - (void)removeObjectForKey:(id)key
@@ -65,7 +66,8 @@
 	if (!key) [AIDictionaryDebug breakpoint];
 	NSAssert1(key != nil, @"%@: Attempted to remove a nil key",self);
 
-	method_invoke(self, class_getInstanceMethod([AIDictionaryDebug class], @selector(removeObjectForKey:)), key);
+    static void (*_removeObjectForKey_method_invoke)(id, Method, id) = (void (*)(id, Method, id)) method_invoke;
+	_removeObjectForKey_method_invoke(self, class_getInstanceMethod([AIDictionaryDebug class], @selector(removeObjectForKey:)), key);
 }
 
 #endif