Swift version of C #defines

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@latencyzero.com

Correct. There’s various bugs on file about this already but SR-485 is a good place to start.

<Issues · apple/swift-issues · GitHub;

Share and Enjoy

···

On 21 Apr 2017, at 11:03, Rick Mann via swift-users <swift-users@swift.org> wrote:

It seems Swift (in Xcode 8.3.2) can't generate symbols for #defines that have expressions.

--
Quinn "The Eskimo!" <http://www.apple.com/developer/&gt;
Apple Developer Relations, Developer Technical Support, Core OS/Hardware