aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-03-05 13:55:54 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-09-10 20:00:06 +0900
commit26b7efc51cf2085c5173bd4fc7263760b81900c7 (patch)
tree74446cdca9d5e857799ec371bb36f3322f0cd3f8 /eval.c
parent15255b303c7fffa146550f69df6f9f772af38ea3 (diff)
downloadruby-26b7efc51cf2085c5173bd4fc7263760b81900c7.tar.gz
include/ruby/internal/intern/proc.h: add doxygen
Must not be a bad idea to improve documents. [ci skip]
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/eval.c b/eval.c
index 209ad334ee..325592f32a 100644
--- a/eval.c
+++ b/eval.c
@@ -983,23 +983,6 @@ rb_rescue(VALUE (* b_proc)(VALUE), VALUE data1,
(VALUE)0);
}
-/*! Protects a function call from potential global escapes from the function.
- *
- * Such global escapes include exceptions, \c Kernel\#throw, \c break in
- * an iterator, for example.
- * It first calls the function func with arg as the argument.
- * If no exception occurred during func, it returns the result of func and
- * *state is zero.
- * Otherwise, it returns Qnil and sets *state to nonzero.
- * If state is NULL, it is not set in both cases.
- *
- * You have to clear the error info with rb_set_errinfo(Qnil) when
- * ignoring the caught exception.
- * \ingroup exception
- * \sa rb_rescue
- * \sa rb_rescue2
- * \sa rb_ensure
- */
VALUE
rb_protect(VALUE (* proc) (VALUE), VALUE data, int *pstate)
{