/trunk/Lib/ruby/exception.i

# · Swig · 5 lines · 4 code · 1 blank · 0 comment · 0 complexity · c25b2cfccb1af1b2f8b87efa5f29d4f2 MD5 · raw file

  1. %include <typemaps/exception.swg>
  2. %insert("runtime") {
  3. %define_as(SWIG_exception(code, msg), %block(%error(code, msg);))
  4. }