title: How to specify custom compiler flags for Visual Studio Compiler
body: <p>With the GCC you can use <code>-D&lt;custom flag&gt;</code> to pass for example a value to a macro that you defined in your code. But I can't find any information on how to do this for the VSC. Does anybody know?</p>
  
  <p>So an example for the GCC case would like like this:</p>
  
  <p><code>g++ -DMYFLAG=1 program.cpp</code></p>