1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-14 15:27:41 +00:00

Add windows FFI example test case for void functions with double

argument.
This commit is contained in:
bakpakin
2022-09-15 13:58:54 -05:00
parent e326071c35
commit c7bc711f63
2 changed files with 6 additions and 0 deletions

View File

@@ -43,6 +43,7 @@
h :double
i :double
j :double])
(ffi/defbind void-fn-2 :void [y :double])
#
# Struct reading and writing
@@ -84,6 +85,7 @@
# Call functions
#
(tracev (void-fn-2 10.3))
(tracev (double-many 1 2 3 4 5 6))
(tracev (string/format "%.17g" (double-many 1 2 3 4 5 6)))
(tracev (type (double-many 1 2 3 4 5 6)))