You can also do: #if !defined( NDEBUG ) /* Debugging Stuff Goes Here *. #endif
I don't have an Xcode install handy to actually check (I'm reinstalling my Mac today), but NDEBUG *should* be defined for release builds, and not defined for debug builds. The reason is that the assert macro in <assert.h> disables itself if NDEBUG is defined. I am under the impression that the presence or absence of NDEBUG is specified by the ANSI C definition, but I'm not completely certain. Don Quixote -- Don Quixote de la Mancha quix...@dulcineatech.com http://www.dulcineatech.com Dulcinea Technologies Corporation: Software of Elegance and Beauty. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com