diff options
author | Alan Wu <[email protected]> | 2021-10-27 16:10:25 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-28 13:43:02 -0400 |
commit | e53d07f583866e6df7a88963ada33cad68018ebd (patch) | |
tree | c65d78bdc6475760a11c1447c462a67b5b689a06 /yjit_iface.c | |
parent | d8e97169baf3073366f768a52956c43a1d4b0806 (diff) |
Rename ::YJIT to RubyVM::YJIT
Since the YJIT Ruby module is CRuby specific and not meant for general
use, it should live under RubyVM instead of at top level.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5038
Diffstat (limited to 'yjit_iface.c')
-rw-r--r-- | yjit_iface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit_iface.c b/yjit_iface.c index d647cf1113..e4915f7e75 100644 --- a/yjit_iface.c +++ b/yjit_iface.c @@ -1119,7 +1119,7 @@ rb_yjit_init(struct rb_yjit_options *options) yjit_init_codegen(); // YJIT Ruby module - mYjit = rb_define_module("YJIT"); + mYjit = rb_define_module_under(rb_cRubyVM, "YJIT"); rb_define_module_function(mYjit, "blocks_for", yjit_blocks_for, 1); // YJIT::Block (block version, code block) |