0
我是新來的客觀C.我正在嘗試使用宏和獲取錯誤的示例程序。越來越多的錯誤 - >目標C
#import <Foundation/Foundation.h>
#define HELLO_WORLD @"Hello World"
#define a(x,y) ((x)+(y))
#define PRINTMAC(x,y)\
NSLog(@"%d",a((x),(y));\
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code here...
//NSLog(@"%d",add(10,20));
PRINTMAC(13,72); //error:
[pool drain];
return 0;
} //error:
錯誤:預計';' '}'標記之前