diff options
author | 卜部昌平 <[email protected]> | 2021-02-01 14:10:07 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2021-09-10 20:00:06 +0900 |
commit | 30f33198714555abc9ed004b75b4508a39922335 (patch) | |
tree | 16623235efce93854251893761f092862955e9f3 /vm_eval.c | |
parent | ee94fb44f4ea0c75203bd0e99909360c81f971fa (diff) |
include/ruby/internal/eval.h: add doxygen
Must not be a bad idea to improve documents. [ci skip]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4815
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 59 |
1 files changed, 1 insertions, 58 deletions
@@ -1045,13 +1045,6 @@ rb_funcallv_scope(VALUE recv, ID mid, int argc, const VALUE *argv, call_type sco #ifdef rb_funcallv #undef rb_funcallv #endif -/*! - * Calls a method - * \param recv receiver of the method - * \param mid an ID that represents the name of the method - * \param argc the number of arguments - * \param argv pointer to an array of method arguments - */ VALUE rb_funcallv(VALUE recv, ID mid, int argc, const VALUE *argv) { @@ -1100,15 +1093,7 @@ rb_apply(VALUE recv, ID mid, VALUE args) #ifdef rb_funcall #undef rb_funcall #endif -/*! - * Calls a method - * \param recv receiver of the method - * \param mid an ID that represents the name of the method - * \param n the number of arguments - * \param ... arbitrary number of method arguments - * - * \pre each of arguments after \a n must be a VALUE. - */ + VALUE rb_funcall(VALUE recv, ID mid, int n, ...) { @@ -1160,15 +1145,6 @@ rb_check_funcall_basic_kw(VALUE recv, ID mid, VALUE ancestor, int argc, const VA return Qundef; } -/*! - * Calls a method. - * - * Same as rb_funcallv but this function can call only public methods. - * \param recv receiver of the method - * \param mid an ID that represents the name of the method - * \param argc the number of arguments - * \param argv pointer to an array of method arguments - */ VALUE rb_funcallv_public(VALUE recv, ID mid, int argc, const VALUE *argv) { @@ -1851,18 +1827,6 @@ ruby_eval_string_from_file(const char *str, const char *filename) return eval_string_with_cref(rb_vm_top_self(), rb_str_new2(str), NULL, file, 1); } -/** - * Evaluates the given string in an isolated binding. - * - * Here "isolated" means the binding does not inherit any other binding. This - * behaves same as the binding for required libraries. - * - * __FILE__ will be "(eval)", and __LINE__ starts from 1 in the evaluation. - * - * @param str Ruby code to evaluate. - * @return The evaluated result. - * @throw Exception Raises an exception on error. - */ VALUE rb_eval_string(const char *str) { @@ -1875,16 +1839,6 @@ eval_string_protect(VALUE str) return rb_eval_string((char *)str); } -/** - * Evaluates the given string in an isolated binding. - * - * __FILE__ will be "(eval)", and __LINE__ starts from 1 in the evaluation. - * - * @sa rb_eval_string - * @param str Ruby code to evaluate. - * @param state Being set to zero if succeeded. Nonzero if an error occurred. - * @return The evaluated result if succeeded, an undefined value if otherwise. - */ VALUE rb_eval_string_protect(const char *str, int *pstate) { @@ -1906,17 +1860,6 @@ eval_string_wrap_protect(VALUE data) return eval_string_with_cref(arg->top_self, rb_str_new_cstr(arg->str), cref, rb_str_new_cstr("eval"), 1); } -/** - * Evaluates the given string under a module binding in an isolated binding. - * This is the same as the binding for loaded libraries on "load('foo', true)". - * - * __FILE__ will be "(eval)", and __LINE__ starts from 1 in the evaluation. - * - * @sa rb_eval_string - * @param str Ruby code to evaluate. - * @param state Being set to zero if succeeded. Nonzero if an error occurred. - * @return The evaluated result if succeeded, an undefined value if otherwise. - */ VALUE rb_eval_string_wrap(const char *str, int *pstate) { |