mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (Init_GC): move #__id__ and #object_id to BasicObject.
[ruby-dev:42778] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5cb9711323
commit
591ae37a59
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Dec 17 22:07:16 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* gc.c (Init_GC): move #__id__ and #object_id to BasicObject.
|
||||
[ruby-dev:42778]
|
||||
|
||||
Fri Dec 17 19:35:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/mkmf/base.rb (TestMkmf::FakeLog): capture output from mkmf.
|
||||
|
|
4
gc.c
4
gc.c
|
@ -3495,8 +3495,8 @@ Init_GC(void)
|
|||
OBJ_TAINT(nomem_error);
|
||||
OBJ_FREEZE(nomem_error);
|
||||
|
||||
rb_define_method(rb_mKernel, "__id__", rb_obj_id, 0);
|
||||
rb_define_method(rb_mKernel, "object_id", rb_obj_id, 0);
|
||||
rb_define_method(rb_cBasicObject, "__id__", rb_obj_id, 0);
|
||||
rb_define_method(rb_cBasicObject, "object_id", rb_obj_id, 0);
|
||||
|
||||
rb_define_module_function(rb_mObSpace, "count_objects", count_objects, -1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue