From: Patrick Beard Date: Thu, 19 Apr 2012 20:48:09 +0000 (+0000) Subject: Added equivalent method calls in examples. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16c111ba8050c5a94f024524c5c0f433c30edf4f;p=clang Added equivalent method calls in examples. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155155 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ObjectiveCLiterals.html b/docs/ObjectiveCLiterals.html index 000c713697..ca7704d0a2 100644 --- a/docs/ObjectiveCLiterals.html +++ b/docs/ObjectiveCLiterals.html @@ -111,15 +111,15 @@ are supported:

 // numbers.
-NSNumber *smallestInt = @(-INT_MAX - 1);
-NSNumber *piOverTwo = @(M_PI / 2);
+NSNumber *smallestInt = @(-INT_MAX - 1);  // [NSNumber numberWithInt:(-INT_MAX - 1)]
+NSNumber *piOverTwo = @(M_PI / 2);        // [NSNumber numberWithDouble:(M_PI / 2)]
 
 // enumerated types.
 typedef enum { Red, Green, Blue } Color;
-NSNumber *favoriteColor = @(Green);
+NSNumber *favoriteColor = @(Green);       // [NSNumber numberWithInt:((int)Green)]
 
 // strings.
-NSString *path = @(getenv("PATH"));
+NSString *path = @(getenv("PATH"));       // [NSString stringWithUTF8String:(getenv("PATH"))]
 NSArray *pathComponents = [path componentsSeparatedByString:@":"];