Hi all,

Are Xcode build settings exposed as pre-processor variables? I know they're available when pre-processing Info.plists, but can't find a way to use them in source code files (.m).

I ask because it could be great if you could do something like this:

#ifdef OBJC_GC
#error This code doesn't support garbage collection
#endif

on a per-file basis. For example, you might have an app designed as GC- only, but have a few files you've updated from r/r. Then attempting to compile as GC-supported should throw an error for the GC-only code.



Jonathon Mah
[EMAIL PROTECTED]


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [EMAIL PROTECTED]

Reply via email to