module RubyVM::MJIT::CType::Union

Public Class Methods

new(name, sizeof, **members) click to toggle source

@param name [String] @param members [Hash{ Symbol => RubyVM::MJIT::CType::* }]

# File lib/mjit/c_type.rb, line 21
def self.new(name, sizeof, **members)
  name = members.keys.join('_') if name.empty?
  CPointer.with_class_name('Union', name) do
    CPointer::Union.define(sizeof, members)
  end
end