summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-19 11:02:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-19 11:02:10 +0000
commit9da7dcc4771e371d0d1102371036594c1d7d4e09 (patch)
tree429928bfcb96452db35c745c1341f70c7149d8a8 /compile.c
parent0618ea7590eac584b6cb16fed1d36133b6e8986c (diff)
compile.c: add comments
* compile.c (rb_method_for_self_aref, rb_method_for_self_aset): add comments about inputs and outputs of func. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index c59402d81d..ac8fad9760 100644
--- a/compile.c
+++ b/compile.c
@@ -6309,12 +6309,18 @@ for_self_aset(rb_iseq_t *iseq, LINK_ANCHOR *ret, VALUE a)
return Qnil;
}
+/*
+ * func (index) -> (value)
+ */
VALUE
rb_method_for_self_aref(VALUE name, VALUE arg, rb_insn_func_t func)
{
return method_for_self(name, arg, func, for_self_aref);
}
+/*
+ * func (index, value) -> (index, value)
+ */
VALUE
rb_method_for_self_aset(VALUE name, VALUE arg, rb_insn_func_t func)
{