Removed defining rb_eNullReferenceError since this doesn't work in C - it
causes a 'initializer element is not constant" error. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
52ae3f6d24
commit
9b2b3912cf
1 changed files with 1 additions and 5 deletions
|
|
@ -6,10 +6,6 @@
|
|||
|
||||
%insert("header") %{
|
||||
|
||||
/* Define custom error for SWIG_NullReferenceError since Ruby does not have a
|
||||
built-in error that seems appropriate. */
|
||||
static VALUE rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
|
||||
|
||||
SWIGINTERN VALUE
|
||||
SWIG_Ruby_ErrorType(int SWIG_code) {
|
||||
VALUE type;
|
||||
|
|
@ -48,7 +44,7 @@ SWIG_Ruby_ErrorType(int SWIG_code) {
|
|||
type = rb_eRuntimeError;
|
||||
break;
|
||||
case SWIG_NullReferenceError:
|
||||
type = rb_eNullReferenceError;
|
||||
type = rb_eRuntimeError;
|
||||
break;
|
||||
case SWIG_UnknownError:
|
||||
type = rb_eRuntimeError;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue