title: Check on TEST mode during runtime
body: <p>My web application writes some kind of log during runtime.
  I don't want to write this log when running my test suite using cucumber.</p>
  
  <p>So, how can I check my current runtime environment (TEST, DEV or PROD)?</p>
  
  <p>I'm looking for the C equivalent to i.e. :
  <br/>
  <code>
      #ifdef DEBUG<br/>
      &nbsp;&nbsp;&nbsp;// just run in debug mode<br/>
      #endif<br/>
  </code></p>
  
  <p>Thank you very much for helping me on this.</p>