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>
@ -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…
x
Reference in New Issue
Block a user