Project

General

Profile

Bug #14264 ยป 0001-Add-documentation-for-the-Kernel-warn-uplevel-keywor.patch

jeremyevans0 (Jeremy Evans), 01/10/2018 02:59 AM

View differences:

error.c
*
* warning 1
* warning 2
*
* If the <code>:uplevel</code> keyword is given, the string will
* be prepended with information for the given caller frame in
* the same format used by the <code>rb_warn</code> C function.
*
* # In baz.rb
* def foo
* warn("invalid call to foo", uplevel: 1)
* end
*
* def bar
* foo
* end
*
* bar
*
* <em>produces:</em>
*
* baz.rb:6: warning: invalid call to foo
*/
static VALUE
    (1-1/1)