ghazel-ffi_gen 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ffi_gen/java_output.rb +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a6fd9f6a4be7633dcb73b531d9fbed87c571c9d
4
- data.tar.gz: d83e65baa61764622e44c5a5605e139a1aa7a767
3
+ metadata.gz: 01d9a31a03b353773ac55436aceb61ed358db558
4
+ data.tar.gz: b1bc130c65b38f4cc1932198bed025608765cdde
5
5
  SHA512:
6
- metadata.gz: 7c7253dc0955031e6dddf511969f19459d8ba2cab12e78554c59761b01b4fab6fb5a16b6114f2ca4bb50939abdfa9518c146099c20bf26d193d0e3a48b4334f0
7
- data.tar.gz: 79e0d47b1ccf464ac7b72eaa4996c22addd79e47f8f8270bfc9b507bdf1f0847264378a1cbb278272a25dbec7c425d96c3be085086805fae6ea4d59d6be274c3
6
+ metadata.gz: e8a2ec67c9d5d03610b6567d5bfa877f88a4f01dfd7dc7d8346874af55a9274a9c89c87b771d6791267331a7d31d36f525969b294d52ebf45d670a7e56d5f66f
7
+ data.tar.gz: 69d90f9cf9ada7339e33e4ddebf7e847b26421f9814d6bccfccd419ec52968f00996cf9f94d9b0ecdb6a032b02fbe6f12eb363dd8d5de358cb06d05edb0973d4
@@ -183,8 +183,6 @@ class FFIGen
183
183
  call = "INSTANCE.#{java_name}(#{args});"
184
184
  if @return_type.respond_to? :no_return and @return_type.no_return
185
185
  writer.puts call
186
- elsif @return_type.is_a? StructOrUnion
187
- writer.puts "return (#{@return_type.java_jna_type})#{call}"
188
186
  else
189
187
  writer.puts "return #{call}"
190
188
  end
@@ -258,6 +256,10 @@ class FFIGen
258
256
  when :double then "double"
259
257
  end
260
258
  end
259
+
260
+ def no_return
261
+ @clang_type == :void
262
+ end
261
263
  end
262
264
 
263
265
  class StringType
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghazel-ffi_gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Musiol