vendredi 24 septembre 2021

Swift: obtain all active compilation conditions at runtime?

In Swift, at runtime, is it possible to obtain all active compilation conditions?

I know I can check known ones, like ye olde

#if DEBUG

I want all of them at once, like (and this is totally imaginary code)

let acc: [String] = CompileTimeInfo.activeCompilationConditions

Related.





Aucun commentaire:

Enregistrer un commentaire