mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_eval.c: argument names
* vm_eval.c (make_no_method_exception): enumerate argument meanings instead of a magic number. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
040ce05610
commit
6bc6708b97
1 changed files with 7 additions and 1 deletions
|
@ -685,7 +685,13 @@ static VALUE
|
|||
make_no_method_exception(VALUE exc, VALUE format, VALUE obj, int argc, const VALUE *argv)
|
||||
{
|
||||
int n = 0;
|
||||
VALUE args[3];
|
||||
enum {
|
||||
arg_mesg,
|
||||
arg_name,
|
||||
arg_args,
|
||||
args_size
|
||||
};
|
||||
VALUE args[args_size];
|
||||
|
||||
if (!format) {
|
||||
format = rb_fstring_cstr("undefined method `%s' for %s%s%s");
|
||||
|
|
Loading…
Add table
Reference in a new issue