From bca57b911a185ab3d0fe19f6f739f6b27bfd48c5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 11 Dec 2020 14:09:34 +0900 Subject: [DOC] Moved RDoc of abort [ci skip] --- process.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'process.c') diff --git a/process.c b/process.c index 0c59fcdf3d..1ff203d8ee 100644 --- a/process.c +++ b/process.c @@ -4460,17 +4460,6 @@ f_exit(int c, const VALUE *a, VALUE _) UNREACHABLE_RETURN(Qnil); } -/* - * call-seq: - * abort - * Kernel::abort([msg]) - * Process.abort([msg]) - * - * Terminate execution immediately, effectively by calling - * Kernel.exit(false). If _msg_ is given, it is written - * to STDERR prior to terminating. - */ - VALUE 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 _)); + +/* + * call-seq: + * abort + * Kernel::abort([msg]) + * Process.abort([msg]) + * + * Terminate execution immediately, effectively by calling + * Kernel.exit(false). If _msg_ is given, it is written + * to STDERR prior to terminating. + */ + static VALUE f_abort(int c, const VALUE *a, VALUE _) { -- cgit v1.2.3