зеркало из https://github.com/github/ruby.git
* 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:
Родитель
5cb9711323
Коммит
591ae37a59
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче