ruby-changes:67729
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 10 Sep 2021 20:01:05 +0900 (JST)
Subject: [ruby-changes:67729] 891dbedd00 (master): include/ruby/internal/error.h: refactor move contents around [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=891dbedd00 From 891dbedd001720442167b8bbeee0edf11c3e58de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Mon, 21 Dec 2020 11:16:16 +0900 Subject: include/ruby/internal/error.h: refactor move contents around [ci skip] --- include/ruby/internal/error.h | 44 +++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/include/ruby/internal/error.h b/include/ruby/internal/error.h index 6b54f56..fa7fb17 100644 --- a/include/ruby/internal/error.h +++ b/include/ruby/internal/error.h @@ -32,28 +32,6 @@ https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/error.h#L32 * @{ */ -RBIMPL_SYMBOL_EXPORT_BEGIN() - -/** - * This is the same as `$!` in Ruby. - * - * @retval RUBY_Qnil Not handling exceptions at the moment. - * @retval otherwise The current exception in the current thread. - * @ingroup exception - */ -VALUE rb_errinfo(void); - -/** - * Sets the current exception (`$!`) to the given value. - * - * @exception rb_eTypeError What is given was neither ::rb_eException nor - * ::RUBY_Qnil. - * @note Use rb_raise() instead to raise `err`. This function just - * assigns the given object to the global variable. - * @ingroup exception - */ -void rb_set_errinfo(VALUE); - /** * Warning categories. A warning issued using this API can be selectively * requested / suppressed by the end-users. For instance passing @@ -82,6 +60,28 @@ enum rb_io_wait_readwrite {RB_IO_WAIT_READABLE, RB_IO_WAIT_WRITABLE}; https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/error.h#L60 #define RB_IO_WAIT_WRITABLE RB_IO_WAIT_WRITABLE /** @endcond */ +RBIMPL_SYMBOL_EXPORT_BEGIN() + +/** + * This is the same as `$!` in Ruby. + * + * @retval RUBY_Qnil Not handling exceptions at the moment. + * @retval otherwise The current exception in the current thread. + * @ingroup exception + */ +VALUE rb_errinfo(void); + +/** + * Sets the current exception (`$!`) to the given value. + * + * @exception rb_eTypeError What is given was neither ::rb_eException nor + * ::RUBY_Qnil. + * @note Use rb_raise() instead to raise `err`. This function just + * assigns the given object to the global variable. + * @ingroup exception + */ +void rb_set_errinfo(VALUE); + RBIMPL_ATTR_NORETURN() RBIMPL_ATTR_NONNULL((2)) RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 3) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/