From 26b7efc51cf2085c5173bd4fc7263760b81900c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Fri, 5 Mar 2021 13:55:54 +0900 Subject: include/ruby/internal/intern/proc.h: add doxygen Must not be a bad idea to improve documents. [ci skip] --- eval.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'eval.c') 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) { -- cgit v1.2.3