diff options
author | John Hawthorn <john@hawthorn.email> | 2021-06-25 13:14:39 -0700 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:37 -0400 |
commit | 4dc821e643fc8b3356b8c868014d42bdff0f8cee (patch) | |
tree | 26f9ca9c316d296d8d5e44e532b164618c1d2c6e /yjit.rb | |
parent | 9a436da064b966c1278ac530c6d6f2d02b0636dc (diff) | |
download | ruby-4dc821e643fc8b3356b8c868014d42bdff0f8cee.tar.gz |
Add YJIT.enabled?
Diffstat (limited to 'yjit.rb')
-rw-r--r-- | yjit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -134,6 +134,10 @@ module YJIT Primitive.reset_stats_bang end + def self.enabled? + Primitive.cexpr! 'rb_yjit_enabled_p() ? Qtrue : Qfalse' + end + class << self private |