I'm not following the macro issue as closely as I maybe should, but in
my current ObjC apps I depend on GCC_PREPROCESSOR_DEFINITIONS to
conditionally include sections of code (or not). (I don't however use it
to directly expand as a macro value.)
This is typically to accomodate differences between Mac App Store and
Developer ID builds, by defining these values in .xcconfig files.
Hopefully some mechanism like this will be available in Swift if ?
···
On 3/24/16 14:05, Jordan Rose via swift-users wrote:
Ahh. Yes, we were. We would define the macro in Clang, then when we
do a lookup we'd get it back out in Swift. I, um, wouldn't have
considered that intentional, but clearly people are depending on it.
--
Rainer Brockerhoff <rainer@brockerhoff.net>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."