mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
load.c: call init
* load.c (register_init_ext): call initialization function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f526784e1e
commit
2568fd774b
1 changed files with 1 additions and 0 deletions
1
load.c
1
load.c
|
@ -1049,6 +1049,7 @@ register_init_ext(st_data_t *key, st_data_t *value, st_data_t init, int existing
|
|||
else {
|
||||
*value = (st_data_t)NEW_MEMO(init, 0, 0);
|
||||
*key = (st_data_t)ruby_strdup(name);
|
||||
(*(void (*)(void))init)();
|
||||
}
|
||||
return ST_CONTINUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue