summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-12-14 15:17:59 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-12-21 11:01:01 +0900
commit11656d15e2c5d5779a637eaf5f388a5c18bef629 (patch)
tree98b99c73739daea7b2b3ecd6c69d631bc8b81035 /include
parent63849a1cd98c7ae3a7d6af3f69814f01dfae25ea (diff)
include/ruby/internal/xmalloc.h: doxygen tag
`@exception` is an alias of `@throw`. It might suite Ruby's document because ruby uses `raise` terminology instead of `throw`. [ci skip]
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/xmalloc.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/ruby/internal/xmalloc.h b/include/ruby/internal/xmalloc.h
index af5e8637a9..52eea46477 100644
--- a/include/ruby/internal/xmalloc.h
+++ b/include/ruby/internal/xmalloc.h
@@ -62,7 +62,7 @@ RBIMPL_ATTR_ALLOC_SIZE((1))
* - In case of `ENOMEM` it tries to GC to make some room.
*
* @param[in] size Requested amount of memory.
- * @throw rb_eMemError No space left for `size` bytes allocation.
+ * @exception rb_eMemError No space left for `size` bytes allocation.
* @return A valid pointer to an allocated storage instance; which has at
* least `size` bytes width, with appropriate alignment detected by
* the underlying malloc() routine.
@@ -91,8 +91,8 @@ RBIMPL_ATTR_ALLOC_SIZE((1,2))
*
* @param[in] nelems Number of elements.
* @param[in] elemsiz Size of an element.
- * @throw rb_eMemError No space left for allocation.
- * @throw rb_eArgError `nelems` * `elemsiz` would overflow.
+ * @exception rb_eMemError No space left for allocation.
+ * @exception rb_eArgError `nelems` * `elemsiz` would overflow.
* @return A valid pointer to an allocated storage instance; which has at
* least `nelems` * `elemsiz` bytes width, with appropriate
* alignment detected by the underlying malloc() routine.
@@ -120,8 +120,8 @@ RBIMPL_ATTR_ALLOC_SIZE((1,2))
*
* @param[in] nelems Number of elements.
* @param[in] elemsiz Size of an element.
- * @throw rb_eMemError No space left for allocation.
- * @throw rb_eArgError `nelems` * `elemsiz` would overflow.
+ * @exception rb_eMemError No space left for allocation.
+ * @exception rb_eArgError `nelems` * `elemsiz` would overflow.
* @return A valid pointer to an allocated storage instance; which has at
* least `nelems` * `elemsiz` bytes width, with appropriate
* alignment detected by the underlying calloc() routine.
@@ -149,7 +149,7 @@ RBIMPL_ATTR_ALLOC_SIZE((2))
* ruby_xmalloc2(), ruby_xcalloc(), ruby_xrealloc(),
* or ruby_xrealloc2().
* @param[in] newsiz Requested new amount of memory.
- * @throw rb_eMemError No space left for `newsiz` bytes allocation.
+ * @exception rb_eMemError No space left for `newsiz` bytes allocation.
* @retval ptr In case the function returns the passed pointer
* as-is, the storage instance that the pointer holds
* is either grown or shrunken to have at least
@@ -198,8 +198,8 @@ RBIMPL_ATTR_ALLOC_SIZE((2,3))
* or ruby_xrealloc2().
* @param[in] newelems Requested new number of elements.
* @param[in] newsiz Requested new size of each element.
- * @throw rb_eMemError No space left for allocation.
- * @throw rb_eArgError `newelems` * `newsiz` would overflow.
+ * @exception rb_eMemError No space left for allocation.
+ * @exception rb_eArgError `newelems` * `newsiz` would overflow.
* @retval ptr In case the function returns the passed pointer
* as-is, the storage instance that the pointer holds
* is either grown or shrunken to have at least