MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /usr/share/swig/1.3.31/lua/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/swig/1.3.31/lua/std_except.i
/* -----------------------------------------------------------------------------
 * See the LICENSE file for information on copyright, usage and redistribution
 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
 *
 * Typemaps used by the STL wrappers that throw exceptions.
 * These typemaps are used when methods are declared with an STL exception
 * specification, such as:
 *   size_t at() const throw (std::out_of_range);
 *
 * std_except.i
 * ----------------------------------------------------------------------------- */

%{
#include <stdexcept>
%}
%include <exception.i>

%typemap(throws) std::out_of_range %{
SWIG_exception(SWIG_IndexError, $1.what()); %}

%typemap(throws) std::exception %{
SWIG_exception(SWIG_SystemError, $1.what()); %}

%typemap(throws) std::exception& %{
SWIG_exception(SWIG_SystemError, ($1)->what()); %}

Anon7 - 2021