Useful Debugging Macros

Marcus Zarra posted some debugging macros, which are now being used by all Bitcartel projects. If you’re a Mac or iOS programmer, check them out:
http://www.cimgf.com/2010/05/02/my-current-prefix-pch-file/

For example, the macro DLog() will help you save time by not having to type NSLog(@”%s”, __PRETTY_FUNCTION__) over and over again. There are similar macros defined in GTMDefines.h (Google Toolbox for Mac) but with harder to type names: _GTMDevLog, _GTMDevAssert. Perhaps they’re meant for internal GTM usage only.

Advertisements
This entry was posted in xcode. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s