mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
cexpr!
must be up to one per line now
This commit is contained in:
parent
127b19ab56
commit
d940e3b2c3
2 changed files with 6 additions and 3 deletions
|
@ -1541,11 +1541,13 @@ module RubyVM::RJIT # :nodoc: all
|
|||
end
|
||||
|
||||
def C.VALUE
|
||||
@VALUE ||= CType::Immediate.find(Primitive.cexpr!("SIZEOF(VALUE)"), Primitive.cexpr!("SIGNED_TYPE_P(VALUE)"))
|
||||
@VALUE ||= CType::Immediate.find(Primitive.cexpr!("SIZEOF(VALUE)"),
|
||||
Primitive.cexpr!("SIGNED_TYPE_P(VALUE)"))
|
||||
end
|
||||
|
||||
def C.shape_id_t
|
||||
@shape_id_t ||= CType::Immediate.find(Primitive.cexpr!("SIZEOF(shape_id_t)"), Primitive.cexpr!("SIGNED_TYPE_P(shape_id_t)"))
|
||||
@shape_id_t ||= CType::Immediate.find(Primitive.cexpr!("SIZEOF(shape_id_t)"),
|
||||
Primitive.cexpr!("SIGNED_TYPE_P(shape_id_t)"))
|
||||
end
|
||||
|
||||
def C.rb_id_table
|
||||
|
|
|
@ -183,7 +183,8 @@ class BindingGenerator
|
|||
raise "Non-immediate type is given to dynamic_types: #{type}"
|
||||
end
|
||||
println " def C.#{type}"
|
||||
println " @#{type} ||= CType::Immediate.find(Primitive.cexpr!(\"SIZEOF(#{type})\"), Primitive.cexpr!(\"SIGNED_TYPE_P(#{type})\"))"
|
||||
println " @#{type} ||= CType::Immediate.find(Primitive.cexpr!(\"SIZEOF(#{type})\"),"
|
||||
println " Primitive.cexpr!(\"SIGNED_TYPE_P(#{type})\"))"
|
||||
println " end"
|
||||
println
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue