title: define function with #define in cpp?
body: <p>i want check sth in if multiple time, i use #define for this ad i want to use it but it doesn't work</p>
  
  <pre><code>#define CHECK_CONDITION(QString condition, start, curr) if(condition == "" ) return true; return (table.commonIn() == "team_id"? list()[start]-&gt;team() ==list()[curr]-&gt;team() :list()[start]-&gt;team() ==list()[curr]-&gt;team())
  </code></pre>
  
  <p>and i use it like this :</p>
  
  <pre><code>if(CHECK_CONDITION(table.commonIn().toStdString(), start, start-idx);) {
     findFalse = true;
  }
  </code></pre>
  
  <p>how can i use this define in my code/
  thank you in advance</p>