title: C++ define function
body: <p>I would like to ask if there is a way to use define to create a function in C++ like that:</p>
  <pre><code>#define RequiredDamage(%1) ( (%1+1)*500 )
  </code></pre>
  <p>Could somebody help me to find better understanding of how <code>#define</code> actually works. What's the actual syntax to actually create a function like that, where could it be applied, is it a good idea to use it and why would I prefer it over a normal function?</p>
  <p>Thanks in advance!</p>