Posted By

zingo on 12/01/07


Tagged

cocoa osx objc NSLog NSDebug


Versions (?)

Who likes this?

7 people have marked this snippet as a favorite

tcol
strangesthings
rastersize
zacwhite
trawor
stationstops
cnathan


Macro for VERBOSE_DEBUG_OUTPUT


 / Published in: Objective C
 

  1. #ifdef VERBOSE_DEBUG_OUTPUT
  2. #warning Debugging output enabled
  3. #define NSDebug(x, ...) NSLog([ NSString stringWithFormat:@"%s: %@", __PRETTY_FUNCTION__, x], ## __VA_ARGS__ )
  4. #else
  5. #define NSDebug(x, ...) /* x, ## __VA_ARGS__ */
  6. #endif

Report this snippet  

You need to login to post a comment.