diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-05-29 09:32:14 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-05-29 09:32:14 +0000 |
commit | cfe64537f8c34e003b49a5c265600787555ae467 (patch) | |
tree | 2970ecd3579a4d25d78db47c4d7bc67a16e31601 /object.c | |
parent | a8382af43a39aa1e442861240506559157921288 (diff) |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -287,6 +287,7 @@ nil_type(obj) return cNilClass; } +#ifdef NIL_PLUS static VALUE nil_plus(x, y) VALUE x, y; @@ -306,6 +307,7 @@ nil_plus(x, y) } /* not reached */ } +#endif static VALUE main_to_s(obj) @@ -996,7 +998,9 @@ Init_Object() rb_define_global_const("NIL", Qnil); /* default addition */ +#ifdef NIL_PLUS rb_define_method(cNilClass, "+", nil_plus, 1); +#endif rb_define_global_function("initialize", obj_dummy, -1); rb_define_global_function("singleton_method_added", obj_dummy, 1); |