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

[DOC] Moved RDoc of abort [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-12-11 14:09:34 +09:00
parent c718c30007
commit bca57b911a
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -4460,17 +4460,6 @@ f_exit(int c, const VALUE *a, VALUE _)
UNREACHABLE_RETURN(Qnil); UNREACHABLE_RETURN(Qnil);
} }
/*
* call-seq:
* abort
* Kernel::abort([msg])
* Process.abort([msg])
*
* Terminate execution immediately, effectively by calling
* <code>Kernel.exit(false)</code>. If _msg_ is given, it is written
* to STDERR prior to terminating.
*/
VALUE VALUE
rb_f_abort(int argc, const VALUE *argv) rb_f_abort(int argc, const VALUE *argv)
{ {
@ -4497,6 +4486,18 @@ rb_f_abort(int argc, const VALUE *argv)
} }
NORETURN(static VALUE f_abort(int c, const VALUE *a, VALUE _)); NORETURN(static VALUE f_abort(int c, const VALUE *a, VALUE _));
/*
* call-seq:
* abort
* Kernel::abort([msg])
* Process.abort([msg])
*
* Terminate execution immediately, effectively by calling
* <code>Kernel.exit(false)</code>. If _msg_ is given, it is written
* to STDERR prior to terminating.
*/
static VALUE static VALUE
f_abort(int c, const VALUE *a, VALUE _) f_abort(int c, const VALUE *a, VALUE _)
{ {