diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-22 10:34:19 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-22 10:34:19 +0000 |
commit | d9d646a2829de38a09b4c630a93b31a2d3067b71 (patch) | |
tree | 14e801453ac85a7842d12d77459733010d0426bb | |
parent | 51c29390f03611252c864d62f5f7c80e53c19051 (diff) | |
download | ruby-d9d646a2829de38a09b4c630a93b31a2d3067b71.tar.gz ruby-d9d646a2829de38a09b4c630a93b31a2d3067b71.tar.xz ruby-d9d646a2829de38a09b4c630a93b31a2d3067b71.zip |
* proc.c (proc_to_s): show is_lambda.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | proc.c | 8 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Fri Jun 22 19:33:49 2007 Tanaka Akira <akr@fsij.org> + + * proc.c (proc_to_s): show is_lambda. + Thu Jun 21 20:36:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * hash.c (rb_hash_sort): remove hash specific implementation. @@ -552,12 +552,14 @@ proc_to_s(VALUE self) if (iseq->insn_info_tbl) { line_no = iseq->insn_info_tbl[0].line_no; } - str = rb_sprintf("#<%s:%lx@%s:%d>", cname, self, + str = rb_sprintf("#<%s:%lx@%s:%d%s>", cname, self, RSTRING_PTR(iseq->filename), - line_no); + line_no, + proc->is_lambda ? " (lambda)" : ""); } else { - str = rb_sprintf("#<%s:%p>", cname, proc->block.iseq); + str = rb_sprintf("#<%s:%p%s>", cname, proc->block.iseq, + proc->is_lambda ? " (lambda)" : ""); } if (OBJ_TAINTED(self)) { |