Sign in
fuchsia
/
third_party
/
swig
/
refs/tags/rel-4.0.0-beta1
/
.
/
Lib
/
r
/
exception.i
blob: 39cb09594cfd25f902b8f3a7983ff2da438ebf56 [
file
] [
log
] [
blame
]
%
include
<
typemaps
/
exception
.
swg
>
%
insert
(
"runtime"
)
{
%
define_as
(
SWIG_exception
(
code
,
msg
),
%
block
(
switch
(
code
)
{
case
SWIG_IndexError
:
return
Rf_ScalarLogical
(
NA_LOGICAL
);
default
:
%
error
(
code
,
msg
);
SWIG_fail
;}
))
}