aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-12-21 11:15:08 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-09-10 20:00:06 +0900
commit1b6245ccdcd414698a257847d508603f438578ca (patch)
tree2916cfceb1e4536f52a267b326210f1857d647d0 /eval.c
parent4881a3ed38dca132ae85878d40ad79b8f4aa5e55 (diff)
downloadruby-1b6245ccdcd414698a257847d508603f438578ca.tar.gz
include/ruby/internal/error.h: add doxygen
Must not be a bad idea to improve documents.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/eval.c b/eval.c
index ff05984bf1..209ad334ee 100644
--- a/eval.c
+++ b/eval.c
@@ -1769,26 +1769,12 @@ errinfo_getter(ID id, VALUE *_)
return get_errinfo();
}
-/*! The current exception in the current thread.
- *
- * Same as \c $! in Ruby.
- * \return the current exception or \c Qnil
- * \ingroup exception
- */
VALUE
rb_errinfo(void)
{
return GET_EC()->errinfo;
}
-/*! Sets the current exception (\c $!) to the given value
- *
- * \param[in] err an \c Exception object or \c Qnil.
- * \exception TypeError if \a err is neither an exception nor \c nil.
- * \note this function does not raise the exception.
- * Use \c rb_raise() when you want to raise.
- * \ingroup exception
- */
void
rb_set_errinfo(VALUE err)
{