title: #ifdef replacement in the Swift language
body: <p>In C/C++/Objective C you can define a macro using compiler preprocessors.
  Moreover, you can include/exclude some parts of code using compiler preprocessors.</p>
  <pre class="lang-cpp prettyprint-override"><code>#ifdef DEBUG
      // Debug-only code
  #endif
  </code></pre>
  <p>Is there a similar solution in Swift?</p>