Class: RubyVM::RJIT::CType::Pointer
- Inherits:
-
Object
- Object
- RubyVM::RJIT::CType::Pointer
- Defined in:
- lib/ruby_vm/rjit/c_type.rb
Class Method Summary collapse
-
.new(&block) ⇒ Object
This takes a block to avoid “stack level too deep” on a cyclic reference.
Class Method Details
.new(&block) ⇒ Object
This takes a block to avoid “stack level too deep” on a cyclic reference
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 |