ghazel-ffi-clang 0.2.0.1 → 0.2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 506649e109549d1903e03b67c447155675058565
4
- data.tar.gz: b6db09a97418026ebcbde1f6566020e19c072b6a
3
+ metadata.gz: 497f21d7f71916982b6f0b2a3c6aeea2582d88d9
4
+ data.tar.gz: 561a927279e9c59c39dfae105b12c6b4b550c2ed
5
5
  SHA512:
6
- metadata.gz: 1e9ac59e87eb20103c844bf160ebe2c0bd9a433f3f98fcbaf3fa10cb6487add82e44c6ff21a0c3fc68e80c2f35b8cb13f92b092590fa6c8b64329041d5e8e050
7
- data.tar.gz: 488e6bfd72f695c81a5ce2ad4455a82e65d00bcfd788163d9e2f592cb7523eacbdfff20d336e5797fce841af16a1cf79d00b7eb251c89ee683dac42dd2af541d
6
+ metadata.gz: 6354a635109a3fb1ca615451285dd065eb699f60854566b5f795c23565f3bbb502f8b10696152a257fc975514b4bf12aa3b0f377e90f866b63a81d278c3468d2
7
+ data.tar.gz: 0bcc4fb9f74883d6c1bf15af0930cbed2a65bc20a9371f142dd1865b09a780bd6800c6ed2eec536c15efe1a3b50245f32921e836236ff3284446482d966354cf
@@ -331,8 +331,14 @@ module FFI
331
331
  attach_function :get_cursor_hash, :clang_hashCursor, [CXCursor.by_value], :uint
332
332
 
333
333
  if FFI::Clang::Utils.satisfy_version?('3.3')
334
- attach_function :is_bit_field,:clang_Cursor_isBitField, [CXCursor.by_value], :uint
335
- attach_function :get_field_decl_bit_width, :clang_getFieldDeclBitWidth, [CXCursor.by_value], :int
334
+ begin
335
+ attach_function :is_bit_field,:clang_Cursor_isBitField, [CXCursor.by_value], :uint
336
+ rescue FFI::NotFoundError => e
337
+ end
338
+ begin
339
+ attach_function :get_field_decl_bit_width, :clang_getFieldDeclBitWidth, [CXCursor.by_value], :int
340
+ rescue FFI::NotFoundError => e
341
+ end
336
342
  end
337
343
 
338
344
  attach_function :get_overloaded_decl, :clang_getOverloadedDecl, [CXCursor.by_value, :uint], CXCursor.by_value
@@ -138,9 +138,18 @@ module FFI
138
138
  attach_function :get_array_element_type ,:clang_getArrayElementType, [CXType.by_value], CXType.by_value
139
139
 
140
140
  if FFI::Clang::Utils.satisfy_version?('3.3')
141
- attach_function :type_get_align_of, :clang_Type_getAlignOf, [CXType.by_value], :long_long
142
- attach_function :type_get_size_of, :clang_Type_getSizeOf, [CXType.by_value], :long_long
143
- attach_function :type_get_offset_of, :clang_Type_getOffsetOf, [CXType.by_value, :string], :long_long
141
+ begin
142
+ attach_function :type_get_align_of, :clang_Type_getAlignOf, [CXType.by_value], :long_long
143
+ rescue FFI::NotFoundError => e
144
+ end
145
+ begin
146
+ attach_function :type_get_size_of, :clang_Type_getSizeOf, [CXType.by_value], :long_long
147
+ rescue FFI::NotFoundError => e
148
+ end
149
+ begin
150
+ attach_function :type_get_offset_of, :clang_Type_getOffsetOf, [CXType.by_value, :string], :long_long
151
+ rescue FFI::NotFoundError => e
152
+ end
144
153
  end
145
154
 
146
155
  if FFI::Clang::Utils.satisfy_version?('3.4')
@@ -21,6 +21,6 @@
21
21
 
22
22
  module FFI
23
23
  module Clang
24
- VERSION = "0.2.0.1"
24
+ VERSION = "0.2.0.2"
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghazel-ffi-clang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.1
4
+ version: 0.2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jari Bakken