зеркало из https://github.com/github/ruby.git
14 строки
238 B
Ruby
14 строки
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
|