Add Ruby support contributed by Masaki Fukushima.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@518 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Thien-Thi Nguyen 2000-07-05 18:58:49 +00:00
commit 618e0eff61
39 changed files with 3754 additions and 10 deletions

27
Lib/ruby/exception.i Normal file
View file

@ -0,0 +1,27 @@
//
// SWIG exception handling for Ruby
//
// $Header$
//
// Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
// Copyright (C) 2000 Information-technology Promotion Agency, Japan
//
// Masaki Fukushima
//
%{
#define SWIG_MemoryError rb_eFatal
#define SWIG_IOError rb_eIOError
#define SWIG_RuntimeError rb_eRuntimeError
#define SWIG_IndexError rb_eIndexError
#define SWIG_TypeError rb_eTypeError
#define SWIG_DivisionByZero rb_eZeroDivError
#define SWIG_OverflowError rb_eRuntimeException
#define SWIG_SyntaxError rb_eSyntaxError
#define SWIG_ValueError rb_eArgError
#define SWIG_SystemError rb_eSystemError
#define SWIG_UnknownError rb_eRuntimeError
#define SWIG_exception(a,b) rb_raise(a,b)
%}