Macro for VERBOSE_DEBUG_OUTPUT


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments


You need to login to view comments.