objective c - Preprocessor target checking -


i want use preprocessor commands test target i'm compiling for. every example read told :

  • add preprocessor macro in target.

  • do :

    #ifdef target_name_macro     nslog(@"target_name"); #else     nslog(@"another_target"); #endif 

however, isn't working. condition passes whenever in target_name's file never passes when doing in target's file. need test in target's file if i'm running in test mode.

i've tried few things, none worked out.

any ideas?


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

c# - Attempting to upload to FTP: System.Net.WebException: System error -