mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
0618ea7590
commit
9da7dcc477
1 changed files with 6 additions and 0 deletions
|
@ -6309,12 +6309,18 @@ for_self_aset(rb_iseq_t *iseq, LINK_ANCHOR *ret, VALUE a)
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* func (index) -> (value)
|
||||||
|
*/
|
||||||
VALUE
|
VALUE
|
||||||
rb_method_for_self_aref(VALUE name, VALUE arg, rb_insn_func_t func)
|
rb_method_for_self_aref(VALUE name, VALUE arg, rb_insn_func_t func)
|
||||||
{
|
{
|
||||||
return method_for_self(name, arg, func, for_self_aref);
|
return method_for_self(name, arg, func, for_self_aref);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* func (index, value) -> (index, value)
|
||||||
|
*/
|
||||||
VALUE
|
VALUE
|
||||||
rb_method_for_self_aset(VALUE name, VALUE arg, rb_insn_func_t func)
|
rb_method_for_self_aset(VALUE name, VALUE arg, rb_insn_func_t func)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue