mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
23459e4dbb
just less C code to maintain
13 lines
238 B
Ruby
13 lines
238 B
Ruby
module RubyVM::MJIT
|
|
def self.enabled?
|
|
Primitive.cexpr! 'RBOOL(mjit_enabled)'
|
|
end
|
|
|
|
def self.pause(wait: true)
|
|
Primitive.cexpr! 'mjit_pause(RTEST(wait))'
|
|
end
|
|
|
|
def self.resume
|
|
Primitive.cexpr! 'mjit_resume()'
|
|
end
|
|
end
|