Source/AIStringDebug.m
branchadium-1.5.10.5
changeset 6003 6e8c6761ee0d
parent 2303 e8ab3917209a
--- a/Source/AIStringDebug.m	Thu Nov 14 16:26:13 2019 -0500
+++ b/Source/AIStringDebug.m	Thu Nov 14 18:10:18 2019 -0500
@@ -52,7 +52,9 @@
 - (NSString *)stringByAppendingString:(NSString *)string
 {
 	if (!string) [AIStringDebug breakpoint];
-	return method_invoke(self, class_getInstanceMethod([AIStringDebug class], @selector(stringByAppendingString:)), string);
+
+    static NSString * (*_stringByAppendingString_method_invoke)(id, Method, NSString *) = (NSString * (*)(id, Method, NSString *)) method_invoke;
+	return _stringByAppendingString_method_invoke(self, class_getInstanceMethod([AIStringDebug class], @selector(stringByAppendingString:)), string);
 }
 
 #endif