summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-12-21 11:16:16 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-09-10 20:00:06 +0900
commit891dbedd001720442167b8bbeee0edf11c3e58de (patch)
tree3f2ad636ac7dc9bf1ea0588c89258c5f83d3dc2e
parent1b6245ccdcd414698a257847d508603f438578ca (diff)
include/ruby/internal/error.h: refactor move contents around [ci skip]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4815
-rw-r--r--include/ruby/internal/error.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/include/ruby/internal/error.h b/include/ruby/internal/error.h
index 6b54f567ed..fa7fb1748b 100644
--- a/include/ruby/internal/error.h
+++ b/include/ruby/internal/error.h
@@ -32,28 +32,6 @@
* @{
*/
-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};
#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)