1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* debug.c (ruby_debug_node): fix to show node line.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-05-17 04:00:36 +00:00
parent dfc0ac4298
commit 84fbcb9694
3 changed files with 9 additions and 5 deletions

View file

@ -58,8 +58,8 @@ NODE *
ruby_debug_node(int level, int debug_level, char *header, NODE *node)
{
if (level < debug_level) {
fprintf(stderr, "DBG> %s: %s\n", header, ruby_node_name(nd_type(node)));
fflush(stderr);
fprintf(stderr, "DBG> %s: %s (%d)\n", header,
ruby_node_name(nd_type(node)), nd_line(node));
}
return node;
}