mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Refactor rb_define_class_variable function (#4492)
This commit is contained in:
parent
e1b03b0c2b
commit
1055b37ef5
Notes:
git
2021-06-01 16:32:44 +09:00
Merged-By: k0kubun <takashikkbn@gmail.com>
1 changed files with 1 additions and 2 deletions
|
@ -3412,8 +3412,7 @@ rb_cv_get(VALUE klass, const char *name)
|
|||
void
|
||||
rb_define_class_variable(VALUE klass, const char *name, VALUE val)
|
||||
{
|
||||
ID id = cv_intern(klass, name);
|
||||
rb_cvar_set(klass, id, val);
|
||||
rb_cv_set(klass, name, val);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue