title: What is the calling convention for extern "C" in C++?
body: <p>The title is really an accurate description of what I'm asking.</p>
  
  <pre><code>extern "C" int foo( int bar ) { return bar; }
  </code></pre>
  
  <p>From what I've been testing, it doesn't seem to be <code>__cdecl</code>, <code>__stdcall</code>, <code>__fastcall</code>, and obviously is not <code>__thiscall</code>.</p>
  
  <p>What is the convention and how does it function?</p>
  
  <p>Thanks.</p>