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.
- checksums.yaml +4 -4
- data/lib/ffi_gen/java_output.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01d9a31a03b353773ac55436aceb61ed358db558
|
4
|
+
data.tar.gz: b1bc130c65b38f4cc1932198bed025608765cdde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8a2ec67c9d5d03610b6567d5bfa877f88a4f01dfd7dc7d8346874af55a9274a9c89c87b771d6791267331a7d31d36f525969b294d52ebf45d670a7e56d5f66f
|
7
|
+
data.tar.gz: 69d90f9cf9ada7339e33e4ddebf7e847b26421f9814d6bccfccd419ec52968f00996cf9f94d9b0ecdb6a032b02fbe6f12eb363dd8d5de358cb06d05edb0973d4
|
data/lib/ffi_gen/java_output.rb
CHANGED
@@ -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
|