From f0f206d828e37bf452f53fe63f729d16b42df2c9 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 7 Mar 2000 08:37:59 +0000 Subject: 2000-03-07 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- class.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'class.c') diff --git a/class.c b/class.c index 5dcdcf6c0..404830549 100644 --- a/class.c +++ b/class.c @@ -15,10 +15,6 @@ #include "st.h" #include -#ifdef USE_CWGUSI -#include -#endif - extern st_table *rb_class_tbl; VALUE @@ -511,6 +507,7 @@ rb_singleton_class(obj) VALUE obj; { VALUE klass; + if (rb_special_const_p(obj)) { rb_raise(rb_eTypeError, "can't define singleton"); } -- cgit