Class: RubyVM::RJIT::CType::Pointer

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_vm/rjit/c_type.rb

Class Method Summary collapse

Class Method Details

.new(&block) ⇒ Object

This takes a block to avoid “stack level too deep” on a cyclic reference

Parameters:

  • block (Proc)


76
77
78
79
80
# File 'lib/ruby_vm/rjit/c_type.rb', line 76

def self.new(&block)
  CPointer.with_class_name('Pointer', block.object_id.to_s) do
    CPointer::Pointer.define(block)
  end
end