* vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI
<nov at yo.rim.or.jp> in [ruby-dev:41348]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9219029d3c
commit
5c94d2d423
@ -1,3 +1,8 @@
|
|||||||
|
Thu May 20 22:08:28 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI
|
||||||
|
<nov at yo.rim.or.jp> in [ruby-dev:41348].
|
||||||
|
|
||||||
Thu May 20 22:04:05 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
Thu May 20 22:04:05 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* vm.c (vm_backtrace_each): now takes an init function to distinguish
|
* vm.c (vm_backtrace_each): now takes an init function to distinguish
|
||||||
|
@ -1536,7 +1536,7 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* caller(start=1) -> array
|
* caller(start=1) -> Array or nil
|
||||||
*
|
*
|
||||||
* Returns the current execution stack---an array containing strings in
|
* Returns the current execution stack---an array containing strings in
|
||||||
* the form ``<em>file:line</em>'' or ``<em>file:line: in
|
* the form ``<em>file:line</em>'' or ``<em>file:line: in
|
||||||
@ -1544,6 +1544,9 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data)
|
|||||||
* determines the number of initial stack entries to omit from the
|
* determines the number of initial stack entries to omit from the
|
||||||
* result.
|
* result.
|
||||||
*
|
*
|
||||||
|
* Returns +nil+ if _start_ is greater than or equal to the size of
|
||||||
|
* current execution stack.
|
||||||
|
*
|
||||||
* def a(skip)
|
* def a(skip)
|
||||||
* caller(skip)
|
* caller(skip)
|
||||||
* end
|
* end
|
||||||
@ -1557,6 +1560,7 @@ rb_catch_obj(VALUE tag, VALUE (*func)(), VALUE data)
|
|||||||
* c(1) #=> ["prog:5:in `b'", "prog:8:in `c'", "prog:11"]
|
* c(1) #=> ["prog:5:in `b'", "prog:8:in `c'", "prog:11"]
|
||||||
* c(2) #=> ["prog:8:in `c'", "prog:12"]
|
* c(2) #=> ["prog:8:in `c'", "prog:12"]
|
||||||
* c(3) #=> ["prog:13"]
|
* c(3) #=> ["prog:13"]
|
||||||
|
* c(4) #=> nil
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user