зеркало из https://github.com/github/ruby.git
* gc.c (obj_info): show node name too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b4d1c024de
Коммит
01c6f50495
|
@ -1,3 +1,7 @@
|
|||
Fri Mar 6 07:33:03 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (obj_info): show node name too.
|
||||
|
||||
Fri Mar 6 07:00:44 2015 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* internal.h: remove struct method_table_wrapper.
|
||||
|
|
4
gc.c
4
gc.c
|
@ -8650,6 +8650,10 @@ obj_info(VALUE obj)
|
|||
|
||||
#ifdef HAVE_VA_ARGS_MACRO
|
||||
switch (BUILTIN_TYPE(obj)) {
|
||||
case T_NODE:
|
||||
snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s (%s)", buff,
|
||||
ruby_node_name(nd_type(obj)));
|
||||
break;
|
||||
case T_ARRAY:
|
||||
snprintf(buff, OBJ_INFO_BUFFERS_SIZE, "%s [%s%s] len: %d", buff,
|
||||
C(ARY_EMBED_P(obj), "E"),
|
||||
|
|
Загрузка…
Ссылка в новой задаче