title: Macro with if inside?
body: <p>Is it possible to do something like this? Look at this code:</p>
  
  <pre><code>#define MyMacro(...) SomeFunction(arg1, arg2, arg3)
  </code></pre>
  
  <p>Now, I would like the 2nd parameter to be conditionally compiled:</p>
  
  <pre><code>#define MyMacro(...) SomeFunction(arg1,
  #if CONDITION
      arg2,
  #endif
      arg3)
  </code></pre>
  
  <p>This actually doesn't compile but it shows what I want to achieve - when <code>CONDITION</code> is satisfied I want <code>MyMacro</code> to use the 3 argument version of <code>SomeFunction</code> and the 2 argument one otherwise.</p>
  
  <p>Of course, here I could just explicitly write both function calls but in my program I actually have 3 "conditional" parameters which would give me 8 combinations. </p>