Swift version of C #defines


(Rick M) #1

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


(Quinn “The Eskimo!”) #2

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

<https://bugs.swift.org/browse/SR-485>

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/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware