summaryrefslogtreecommitdiff
path: root/mjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-28 00:13:09 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-11-28 00:13:23 -0800
commit8e18761da1932df88bfb6505acbda4740e1b2930 (patch)
treefad1de1f4920c91244adf28db9c5787b8ab679cb /mjit_c.rb
parentb033775ed9d9226ba73c1d4a197e55ba89575142 (diff)
Revert "MJIT: Make it parsable by Solargraph"
This reverts commit ccd8dd6ad395bbd9f5290e0fcb7929e5e5d36767. Revert "MJIT: Fix miniruby with MJIT_FORCE_ENABLE" This reverts commit b033775ed9d9226ba73c1d4a197e55ba89575142. GitHub Actions is failing. I ran out of time today to investigate it. will try it again tomorrow.
Diffstat (limited to 'mjit_c.rb')
-rw-r--r--mjit_c.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/mjit_c.rb b/mjit_c.rb
index 05cd53dc4b..5ccc40aaf9 100644
--- a/mjit_c.rb
+++ b/mjit_c.rb
@@ -2,6 +2,8 @@
# Part of this file is generated by tool/mjit/bindgen.rb.
# Run `make mjit-bindgen` to update code between "MJIT bindgen begin" and "MJIT bindgen end".
module RubyVM::MJIT
+ C = Object.new
+
# This `class << C` section is for calling C functions. For importing variables
# or macros as is, please consider using tool/mjit/bindgen.rb instead.
class << C
@@ -767,4 +769,4 @@ module RubyVM::MJIT
end
### MJIT bindgen end ###
-end if RubyVM::MJIT.enabled? && RubyVM::MJIT.const_defined?(:C) # not defined for miniruby
+end if RubyVM::MJIT.enabled?