[前][次][番号順一覧][スレッド一覧]

ruby-changes:67737

From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 10 Sep 2021 20:01:18 +0900 (JST)
Subject: [ruby-changes:67737] 99c3328edc (master): include/ruby/internal/error.h: name a parameter

https://git.ruby-lang.org/ruby.git/commit/?id=99c3328edc

From 99c3328edc696ec3ce12d536a1dfe4578fd26f13 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: Wed, 9 Dec 2020 17:00:50 +0900
Subject: include/ruby/internal/error.h: name a parameter

Better document [ci skip]
---
 include/ruby/internal/error.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/ruby/internal/error.h b/include/ruby/internal/error.h
index fa7fb17..49e2276 100644
--- a/include/ruby/internal/error.h
+++ b/include/ruby/internal/error.h
@@ -74,13 +74,14 @@ VALUE rb_errinfo(void); https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/error.h#L74
 /**
  * Sets the current exception (`$!`) to the given value.
  *
+ * @param[in]  err            An instance of ::rb_eException, or ::RUBY_Qnil.
  * @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);
+void rb_set_errinfo(VALUE err);
 
 RBIMPL_ATTR_NORETURN()
 RBIMPL_ATTR_NONNULL((2))
@@ -151,7 +152,7 @@ RBIMPL_ATTR_NORETURN() https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/error.h#L152
 /**
  * Converts a C errno into a Ruby exception, then raises it.  For instance:
  *
- * ```C
+ * ```CXX
  * static VALUE
  * foo(VALUE argv)
  * {
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]