Created
November 20, 2012 02:36
-
-
Save hirohitokato/4115565 to your computer and use it in GitHub Desktop.
C11の新機能によるNSNumber用マクロ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define N(x) _Generic((x), \ | |
int: [NSNumber numberWithInt: x], \ | |
float: [NSNumber numberWithFloat: x], \ | |
double: [NSNumber numberWithDouble: x]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment