/
usr
/
share
/
swig
/
3.0.12
/
/usr/share/swig/3.0.12
mkdir
upload
Name
Size
Mode
Actions
allegrocl/
-
0755
rm
cffi/
-
0755
rm
chicken/
-
0755
rm
clisp/
-
0755
rm
csharp/
-
0755
rm
d/
-
0755
rm
gcj/
-
0755
rm
go/
-
0755
rm
guile/
-
0755
rm
java/
-
0755
rm
javascript/
-
0755
rm
lua/
-
0755
rm
modula3/
-
0755
rm
mzscheme/
-
0755
rm
ocaml/
-
0755
rm
octave/
-
0755
rm
perl5/
-
0755
rm
php/
-
0755
rm
php5/
-
0755
rm
pike/
-
0755
rm
python/
-
0755
rm
r/
-
0755
rm
ruby/
-
0755
rm
scilab/
-
0755
rm
std/
-
0755
rm
tcl/
-
0755
rm
typemaps/
-
0755
rm
uffi/
-
0755
rm
allkw.swg
803
0644
edit
dl
rm
attribute.i
496
0644
edit
dl
rm
carrays.i
2646
0644
edit
dl
rm
cdata.i
3181
0644
edit
dl
rm
cmalloc.i
2354
0644
edit
dl
rm
constraints.i
7047
0644
edit
dl
rm
cpointer.i
3551
0644
edit
dl
rm
cstring.i
324
0644
edit
dl
rm
cwstring.i
265
0644
edit
dl
rm
director_common.swg
512
0644
edit
dl
rm
exception.i
8254
0644
edit
dl
rm
intrusive_ptr.i
2814
0644
edit
dl
rm
inttypes.i
2380
0644
edit
dl
rm
math.i
2086
0644
edit
dl
rm
pointer.i
294
0644
edit
dl
rm
runtime.swg
1236
0644
edit
dl
rm
shared_ptr.i
2686
0644
edit
dl
rm
stdint.i
2368
0644
edit
dl
rm
std_except.i
2077
0644
edit
dl
rm
stl.i
249
0644
edit
dl
rm
swig.swg
24840
0644
edit
dl
rm
swigarch.i
1580
0644
edit
dl
rm
swigerrors.swg
499
0644
edit
dl
rm
swiginit.swg
7973
0644
edit
dl
rm
swiglabels.swg
3800
0644
edit
dl
rm
swigrun.i
256
0644
edit
dl
rm
swigrun.swg
16662
0644
edit
dl
rm
swigwarn.swg
14291
0644
edit
dl
rm
swigwarnings.swg
7094
0644
edit
dl
rm
wchar.i
309
0644
edit
dl
rm
windows.i
4143
0644
edit
dl
rm
Edit:
/usr/share/swig/3.0.12/std_except.i
(2077B)
/* ----------------------------------------------------------------------------- * std_except.i * * SWIG library file with typemaps to handle and throw STD exceptions in a * language and STL independent way, i.e., the target language doesn't * require to support STL but only the 'exception.i' mechanism. * * These typemaps are used when methods are declared with an STD * exception specification, such as * * size_t at() const throw (std::out_of_range); * * The typemaps here are based on the language independent * 'exception.i' library. If that is working in your target language, * this file will work. * * If the target language doesn't implement a robust 'exception.i' * mechanism, or you prefer other ways to map the STD exceptions, write * a new std_except.i file in the target library directory. * ----------------------------------------------------------------------------- */ #if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGGUILE) || defined(SWIGUTL) || defined(SWIGD) #error "This version of std_except.i should not be used" #endif %{ #include <typeinfo> #include <stdexcept> %} %include <exception.i> %define %std_exception_map(Exception, Code) %typemap(throws,noblock=1) Exception { SWIG_exception(Code, $1.what()); } %ignore Exception; struct Exception { }; %enddef namespace std { %std_exception_map(bad_cast, SWIG_TypeError); %std_exception_map(bad_exception, SWIG_SystemError); %std_exception_map(domain_error, SWIG_ValueError); %std_exception_map(exception, SWIG_SystemError); %std_exception_map(invalid_argument, SWIG_ValueError); %std_exception_map(length_error, SWIG_IndexError); %std_exception_map(logic_error, SWIG_RuntimeError); %std_exception_map(out_of_range, SWIG_IndexError); %std_exception_map(overflow_error, SWIG_OverflowError); %std_exception_map(range_error, SWIG_OverflowError); %std_exception_map(runtime_error, SWIG_RuntimeError); %std_exception_map(underflow_error, SWIG_OverflowError); }
Save
cmd:
run