title: Macro / keyword which can be used to print out method name?
body: <p><code>__FILE__</code> and <code>__LINE__</code> are well known. There is a <code>__func__</code> since C99.</p>
  
  <pre><code>#include &lt;iostream&gt;
  struct Foo {
          void Do(){ std::cout &lt;&lt; __func__ &lt;&lt; std::endl; }
  };
  
  int main()
  {
          std::cout &lt;&lt; __func__ &lt;&lt; std::endl;
          Foo foo; foo.Do();
          return 0;
  }
  </code></pre>
  
  <p>will output</p>
  
  <pre><code>main
  Do
  </code></pre>
  
  <p>Is there any macro / keyword that would output method name like <code>Foo::Do</code>?</p>