Index: ios/showcase/common/protocol_alerter.mm |
diff --git a/ios/showcase/common/protocol_alerter.mm b/ios/showcase/common/protocol_alerter.mm |
index e506e9290f2f8ecec361b1cede0646752b8a695e..759b76ffde4bba67395271afdef5ca298f163794 100644 |
--- a/ios/showcase/common/protocol_alerter.mm |
+++ b/ios/showcase/common/protocol_alerter.mm |
@@ -161,6 +161,8 @@ char kAssociatedProtocolNameKey; |
return [self objectDescriptionAtIndex:index]; |
case 'q': |
return [self longLongDescriptionAtIndex:index]; |
+ case 'Q': |
+ return [self unsignedLongLongDescriptionAtIndex:index]; |
// Add cases as needed here. |
default: |
return [NSString stringWithFormat:@"<Unknown Type:%s>", type]; |
@@ -210,4 +212,13 @@ char kAssociatedProtocolNameKey; |
return [NSString stringWithFormat:@"%lld", value]; |
} |
+// Returns a string describing an argument at |index| that is known to be an |
+// unsigned long long. |
+- (NSString*)unsignedLongLongDescriptionAtIndex:(NSInteger)index { |
+ unsigned long long value; |
+ |
+ [self getArgument:&value atIndex:index]; |
+ return [NSString stringWithFormat:@"%llu", value]; |
+} |
+ |
@end |