title: SWIG_exception() prints SWIG_RuntimeError as string
body: <p>I wrapped my C++ function using SWIG so I can use it in Lua.</p>
  
  <p>Inside my typemap, I check if the input is table.</p>
  
  <pre><code>if (!lua_istable(L, 1)) {
        SWIG_exception(SWIG_RuntimeError, "argument mismatch: table expected");
      }
  </code></pre>
  
  <p>But if this is called in Lua, the message prints like the following.</p>
  
  <pre><code>SWIG_RuntimeError:argument mismatch: table expected
  </code></pre>
  
  <p>I tried to replace <code>SWIG_RuntimeError</code> with <code>-3</code> but then it just prints <code>-3</code> instead of <code>SWIG_RuntimeError</code>.</p>
  
  <p>I included the followings</p>
  
  <pre><code>%include &lt;stl.i&gt;
  %include &lt;std_string.i&gt;
  %include &lt;std_except.i&gt;
  
  %include &lt;exception.i&gt;
  %include &lt;typemaps.i&gt;
  </code></pre>
  
  <p>I tried not including <code>&lt;std_except.i&gt;</code> and/or <code>&lt;exception.i&gt;</code> but none of these fixed the problem.</p>
  
  <p>How can I fix this?</p>