title: How can I use the compile time constant __LINE__ in a string?
body: <p>I can use <code>__LINE__</code> as a method parameter just fine, but I would like an easy way to use it in a function that uses strings.</p>
  
  <p>For instance say I have this:</p>
  
  <pre><code>11    string myTest()
  12    {
  13     if(!testCondition)
  14       return logError("testcondition failed");
  15    }
  </code></pre>
  
  <p>And I want the result of the function to be: </p>
  
  <blockquote>
    <p>"myTest line 14: testcondition failed"</p>
  </blockquote>
  
  <p>How can I write logError? Does it have to be some monstrosity of a macro?</p>