summaryrefslogtreecommitdiff
path: root/rjit_c.rb
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2023-04-06 21:13:10 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2023-04-07 09:49:15 -0700
commita9bfb64153ae0a07d498d0976d335b65515fd1b1 (patch)
tree65f2ba7b4b78de93a1d4e292e68ca018c59103fc /rjit_c.rb
parentac8a16237c727ae2a1446ef6dc810d0e750971fb (diff)
Expose rb_sym_to_proc via RJIT
This is needed for getblockparamproxy
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7673
Diffstat (limited to 'rjit_c.rb')
-rw-r--r--rjit_c.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/rjit_c.rb b/rjit_c.rb
index ae79788356..917e0f8772 100644
--- a/rjit_c.rb
+++ b/rjit_c.rb
@@ -696,6 +696,10 @@ module RubyVM::RJIT # :nodoc: all
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_str_intern) }
end
+ def C.rb_sym_to_proc
+ Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_sym_to_proc) }
+ end
+
def C.rb_vm_bh_to_procval
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_vm_bh_to_procval) }
end