In my Android programs, I frequently used :
private static final boolean D = true;
Then all of my calls to Log were prepended with if(D)
if(D)Log.w("Tag", "message");
This helped easily clean up code by setting the D value to false to remove all logging.
2 Questions: Do calls to "NSLog" in objective C have any release product overhead?
What would be the best equivalent of the if(D) logic above?
Right now I'm trying the
#ifdef macro
NSLog(@"%@",@"Some debug info");
#endif
Does this remove the code in question from the compilation unit?
Thank you!