<p>You can't use <code>__FUNCTION__</code> since it's not standardized by ANSI C.  See this list:</p>

<p><a href="https://docs.freebsd.org/info/cpp/cpp.info.Standard_Predefined.html">https://docs.freebsd.org/info/cpp/cpp.info.Standard_Predefined.html</a></p>

<p>That gives you <code>__LINE__</code> and <code>__FILE__</code>, but that won't really help with a backtrace -- that will simply print the current location in the code (that may still be useful, of course).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/380#issuecomment-74081159">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBewq_PVfIBePzVYuFjO7-0WxjkNks5nrLNDgaJpZM4DRaYY.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/380#issuecomment-74081159"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>