[swift-users] Swift version of C #defines

Rick Mann rmann at latencyzero.com
Fri Apr 21 05:03:59 CDT 2017


It seems Swift (in Xcode 8.3.2) can't generate symbols for #defines that have expressions. e.g. this one works, and gets a symbol:

#define LGS_MAX_IR_PANORAMA_IMAGE_COUNT 10

But this one doesn't:

#define LGS_IMAGE_DATA_SIZE 25*1024*1024


-- 
Rick Mann
rmann at latencyzero.com




More information about the swift-users mailing list