Skip to content

Commit c03f37d

Browse files
committed
merge revision(s) 41348:
* vm_backtrace.c: Update rdoc for Backtrace#label with @_ko1 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@41363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent e4fd9de commit c03f37d

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Tue Jun 18 00:43:27 2013 Zachary Scott <[email protected]>
2+
3+
* vm_backtrace.c: Update rdoc for Backtrace#label with @_ko1
4+
15
Tue Jun 18 00:34:57 2013 CHIKANAGA Tomoyuki <[email protected]>
26

37
merge revision(s) 41347: [Backport #5048] [Backport #5465] [Backport #8319]

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define RUBY_VERSION "2.0.0"
22
#define RUBY_RELEASE_DATE "2013-06-18"
3-
#define RUBY_PATCHLEVEL 223
3+
#define RUBY_PATCHLEVEL 224
44

55
#define RUBY_RELEASE_YEAR 2013
66
#define RUBY_RELEASE_MONTH 6

vm_backtrace.c

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,27 @@ location_label(rb_backtrace_location_t *loc)
177177
*
178178
* Usually consists of method, class, module, etc names with decoration.
179179
*
180-
* For example, using +caller_locations.rb+ from Thread::Backtrace::Location
180+
* Consider the following example:
181+
*
182+
* def foo
183+
* puts caller_locations(0).first.label
184+
*
185+
* 1.times do
186+
* puts caller_locations(0).first.label
187+
*
188+
* 1.times do
189+
* puts caller_locations(0).first.label
190+
* end
191+
*
192+
* end
193+
* end
194+
*
195+
* The result of calling +foo+ is this:
196+
*
197+
* label: foo
198+
* label: block in foo
199+
* label: block (2 levels) in foo
181200
*
182-
* loc = c(0..1).first
183-
* loc.label #=> a
184201
*/
185202
static VALUE
186203
location_label_m(VALUE self)

0 commit comments

Comments
 (0)