summaryrefslogtreecommitdiffstats
path: root/third_party/ocmock/OCMock/NSMethodSignature+OCMAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/ocmock/OCMock/NSMethodSignature+OCMAdditions.m')
-rw-r--r--third_party/ocmock/OCMock/NSMethodSignature+OCMAdditions.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/third_party/ocmock/OCMock/NSMethodSignature+OCMAdditions.m b/third_party/ocmock/OCMock/NSMethodSignature+OCMAdditions.m
new file mode 100644
index 0000000..a69bb14
--- /dev/null
+++ b/third_party/ocmock/OCMock/NSMethodSignature+OCMAdditions.m
@@ -0,0 +1,19 @@
+//---------------------------------------------------------------------------------------
+// $Id$
+// Copyright (c) 2009 by Mulle Kybernetik. See License file for details.
+//---------------------------------------------------------------------------------------
+
+#import "NSMethodSignature+OCMAdditions.h"
+
+
+@implementation NSMethodSignature(OCMAdditions)
+
+- (const char *)methodReturnTypeWithoutQualifiers
+{
+ const char *returnType = [self methodReturnType];
+ while(strchr("rnNoORV", returnType[0]) != NULL)
+ returnType += 1;
+ return returnType;
+}
+
+@end