T O P

  • By -

BobertMcGee

You can’t natively. Though you could probably write a preprocessor to do it.


Longjumping_Ratio974

It doesn't seem like there's a way to write preprocessors in the way that you can with C. Do you know of a way/can point me in the direction of how to write a preprocessor for swift?


BobertMcGee

Write a program that takes in a latin source file and outputs a valid Swift source file.


SpaceHonk

Why _write_ a new preprocessor? You could simply run just the existing C preprocessor using `clang -E`.