We Recommend

Programming in Objective-C Programming in Objective-C
Programming in Objective-C is a concise, carefully written tutorial on the basics of Objective-C and object-oriented programming. The book makes no assumption about prior experience with object-oriented programming languages or with the C language (upon which Objective-C is based). And because of this, both novice and experienced programmers alike can use this book to quickly and effectively learn the fundamentals of Objective-C.


Ballyhoo


Posted By

zingo on 12/01/07


Tagged

cocoa osx objc NSLog NSDebug


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

tcol
strangesthings


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.