From 0fe0086defdffe02202ce098b48bf62f078e0b81 Mon Sep 17 00:00:00 2001 From: Charlie Savage Date: Mon, 9 Jan 2006 20:11:37 +0000 Subject: [PATCH] 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/SWIG@8326 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/ruby/rubyerrors.swg | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Lib/ruby/rubyerrors.swg b/Lib/ruby/rubyerrors.swg index 5de459943..155291add 100644 --- a/Lib/ruby/rubyerrors.swg +++ b/Lib/ruby/rubyerrors.swg @@ -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;