10

When I run code such as the following:

- (void)viewDidLoad
{

#ifdef DEBUG
    NSLog(@"debug");
#else
    NSLog(@"here");
#endif
    [super viewDidLoad];
}

I see "debug" printed in the log, but I did not define DEBUG explicitly. Where is it defined?

4

1 に答える 1

18

プリプロセッサ マクロの下のビルド設定で定義されている可能性が最も高いです。

これは私のプロジェクトの1つの例です これは私のプロジェクトの1つの例です

于 2012-05-24T06:21:36.777 に答える