diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-03 07:21:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-03 07:21:48 +0000 |
commit | de8c88bfbc77317bd423f17f3a036be9d128f847 (patch) | |
tree | 440c8f0e154c641483b3c75f2491e47c9edf9c97 /vm_eval.c | |
parent | 90d0196dc33d18e281d9bbf8cc96bbeda4383179 (diff) | |
download | ruby-de8c88bfbc77317bd423f17f3a036be9d128f847.tar.gz |
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
Diffstat (limited to 'vm_eval.c')
-rw-r--r-- | vm_eval.c | 8 |
1 files changed, 7 insertions, 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"); |