summaryrefslogtreecommitdiff
path: root/share/swig/2.0.11/r/exception.i
blob: 39cb09594cfd25f902b8f3a7983ff2da438ebf56 (plain)
1
2
3
4
5
6
7
8
%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;} ))
}