title: Is it possible to disable some lines of code in Swift?
body: <p>I trying to make my code compilable with both Swift 1.2 and 2.0, without creating a new branch, by using macro.</p>
  
  <p>Macro in Swift that you defined in custom Swift Compiler flags doesn't allow you to check the conditions as freely as Obj-C.</p>
  
  <p>For example, in function declaration, if it like Obj-C. I can do something like this.</p>
  
  <pre><code>class ThisIsAClass
  {
      #if SWIFT_TWO_POINT_O
         func foo(bar bar: String)
      #else
         func foo(#bar: String)
      #endif
         {
            // Do some common code
            // ...
            // ...
  
            #if SWIFT_TWO_POINT_O
               print("Do 2.0 things")
            #else
               print("Do 1.2 things")
            #endif
         }
  }
  </code></pre>
  
  <p>Macro condition checking within the function is fine.
  But the condition checking for declaring function will failed.</p>
  
  <p>Is there a way I can achieve something like this.</p>
  
  <p>Or separate between Swift 1.2 and 2.0 branches is the only way. </p>