diff --git a/rjit_c.rb b/rjit_c.rb index 045f9a9df5..5b08ac71c5 100644 --- a/rjit_c.rb +++ b/rjit_c.rb @@ -1004,6 +1004,10 @@ module RubyVM::RJIT # :nodoc: all ) end + def C.rb_cfunc_t + @rb_cfunc_t ||= self.VALUE + end + def C.rb_control_frame_t @rb_control_frame_t ||= CType::Struct.new( "rb_control_frame_struct", Primitive.cexpr!("SIZEOF(struct rb_control_frame_struct)"), @@ -1594,10 +1598,6 @@ module RubyVM::RJIT # :nodoc: all CType::Stub.new(:rb_event_flag_t) end - def C.rb_cfunc_t - CType::Stub.new(:rb_cfunc_t) - end - def C.rb_method_alias_t CType::Stub.new(:rb_method_alias_t) end diff --git a/tool/rjit/bindgen.rb b/tool/rjit/bindgen.rb index e4a526fb30..f29493ac3a 100755 --- a/tool/rjit/bindgen.rb +++ b/tool/rjit/bindgen.rb @@ -602,6 +602,7 @@ generator = BindingGenerator.new( rb_callcache rb_callinfo rb_captured_block + rb_cfunc_t rb_control_frame_t rb_cref_t rb_execution_context_struct