[swift-dev] #pragma message?
Ron Olson
tachoknight at gmail.com
Tue Oct 25 11:02:59 CDT 2016
Hi all-
I have an iOS project that has multiple schemes for determining which
backend server to talk to (dev/staging/prod) as well as some custom text
for the version label. I've been using the -D flag during compiling to
invoke the right #if/#elseif/#endif pragmas in my Swift code, but I
admit I'm always a bit apprehensive; is it *really* going to use the
prod URL? In C++ projects I'd use a #pragma message to ensure I was
truly in a #if block but that doesn't seem to work with Swift.
Is there any way to put some harmless text in the compiler output so as
to assuage my fears that my compiled binary will be wrong?
Thanks,
Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20161025/f2826229/attachment.html>
More information about the swift-dev
mailing list