summaryrefslogtreecommitdiff
path: root/modules/tools/tests/c_iface.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-03-27 16:21:39 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-03-27 16:21:39 +0100
commit558c6b333f96dc4953337fa9e290b36fbbce5bc3 (patch)
tree627d4c7daf979e142c75e2d0b9a65a0de8bb749c /modules/tools/tests/c_iface.cpp
parentcdd8dab6d276d8b62b025ac98e495a258331d1e6 (diff)
tools: Changing transpiling and adding structs
Diffstat (limited to 'modules/tools/tests/c_iface.cpp')
-rw-r--r--modules/tools/tests/c_iface.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/tools/tests/c_iface.cpp b/modules/tools/tests/c_iface.cpp
index b70131e..35591f8 100644
--- a/modules/tools/tests/c_iface.cpp
+++ b/modules/tools/tests/c_iface.cpp
@@ -22,6 +22,13 @@ using TestStructArray = Struct<
Member<TestArray, "array">
>;
+using TestStructMore = Struct<
+ Member<Int64, "int">,
+ Member<UInt16, "uint">,
+ Member<Float32, "float">,
+ Member<Float64, "double">
+>;
+
using TestEmptyInterface = Interface<>;
using TestOneFunctionInterface = Interface<
@@ -44,7 +51,8 @@ using TestMultiFunctionInterface = Interface<
Member<Function<TestArray, Float32>, "foo">,
Member<Function<Float64, Int8>, "bar">,
Member<Function<UInt32, TestArray>, "baz">,
- Member<Function<UInt32, Float64>, "banana">
+ Member<Function<UInt32, Float64>, "banana">,
+ Member<Function<TestStructMore, Float32>, "struct">
>;
}