Index: ios/showcase/common/protocol_alerter.mm |
diff --git a/ios/showcase/common/protocol_alerter.mm b/ios/showcase/common/protocol_alerter.mm |
index 888f95788587f85c411caa070f86174428f47cf6..410226c07f91e31efec2a7e8e915c48d1750e3c0 100644 |
--- a/ios/showcase/common/protocol_alerter.mm |
+++ b/ios/showcase/common/protocol_alerter.mm |
@@ -158,13 +158,15 @@ char kAssociatedProtocolNameKey; |
switch (*type) { |
case '@': |
return [self objectDescriptionAtIndex:index]; |
+ case 'q': |
+ return [self longLongDescriptionAtIndex:index]; |
// Add cases as needed here. |
default: |
return [NSString stringWithFormat:@"<Unknown Type:%c>", *type]; |
} |
} |
-// Return a string describing an argument at |index| that's known to an |
+// Return a string describing an argument at |index| that's known to be an |
// objective-C object. |
- (NSString*)objectDescriptionAtIndex:(NSInteger)index { |
id object; |
@@ -198,4 +200,13 @@ char kAssociatedProtocolNameKey; |
range:range]; |
} |
+// Returns a string describing an argument at |index| that is known to be a long |
+// long. |
+- (NSString*)longLongDescriptionAtIndex:(NSInteger)index { |
+ long long value; |
+ |
+ [self getArgument:&value atIndex:index]; |
+ return [NSString stringWithFormat:@"%lld", value]; |
+} |
+ |
@end |