summaryrefslogtreecommitdiff
path: root/mjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-28 21:33:55 -0800
committerGitHub <noreply@github.com>2022-11-28 21:33:55 -0800
commit9c13fc614c2de0ca4aa8b6ecdd84033ef689b542 (patch)
treec4babe279f5f1d070b8c9aa8a57cb97d52be6630 /mjit_c.rb
parentacb76663ba20241e7c2552aafae8b1d883520b9a (diff)
MJIT: Make it parsable by Solargraph (#6827)
* Revert "Revert "MJIT: Make it parsable by Solargraph"" This reverts commit 8e18761da1932df88bfb6505acbda4740e1b2930. * Call rb_gc_register_mark_object
Notes
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
Diffstat (limited to 'mjit_c.rb')
-rw-r--r--mjit_c.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/mjit_c.rb b/mjit_c.rb
index 5ccc40aaf9..05cd53dc4b 100644
--- a/mjit_c.rb
+++ b/mjit_c.rb
@@ -2,8 +2,6 @@
# 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
@@ -769,4 +767,4 @@ module RubyVM::MJIT
end
### MJIT bindgen end ###
-end if RubyVM::MJIT.enabled?
+end if RubyVM::MJIT.enabled? && RubyVM::MJIT.const_defined?(:C) # not defined for miniruby