Sha256: 82249a2904fc46a2b712fccb0dd00432e32f377d58f0190b6954be583a2ed8c1
Contents?: true
Size: 418 Bytes
Versions: 3
Compression:
Stored size: 418 Bytes
Contents
module FFI module Clang module Types class Record < Type def offsetof(field) Lib.type_get_offset_of(@type, field) end def anonymous? self.spelling.match(/unnamed/) end def record_type case self.spelling when /struct/ :struct when /union/ :union else raise("Unknown record type: #{self.spelling}") end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-clang-0.12.0 | lib/ffi/clang/types/record.rb |
ffi-clang-0.11.0 | lib/ffi/clang/types/record.rb |
ffi-clang-0.10.0 | lib/ffi/clang/types/record.rb |