title: Is there a way to turn compiler switch directives to the current default state (instead of just ON or OFF)?
body: <p>For Delphi compiler directives, is there a way to turn a switch directive to its &quot;current global default state&quot;?</p>
  <p>I have read the documentation page at <a href="http://docwiki.embarcadero.com/RADStudio/Sydney/en/Delphi_compiler_directives" rel="nofollow noreferrer">http://docwiki.embarcadero.com/RADStudio/Sydney/en/Delphi_compiler_directives</a>, but it explains only how to turn switch directives on or off. My code contains several places with this construct (meant to avoid hints for a particular section of code):</p>
  <pre><code>{$HINTS OFF}
    // ... some code ...
  {$HINTS ON}
  </code></pre>
  <p>However, this turns hints (back) <em>on</em> afterwards, which is <em>not</em> what I want when I do e.g. a release compilation with hints suppressed globally (using for example the -H- option to the dcc32.exe command-line compiler).</p>
  <p>I would want something like this:</p>
  <pre><code>{$HINTS OFF}
    // ... some code ...
  {$HINTS DEFAULT}
  </code></pre>
  <p>Does that exist?</p>