File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ interface FooInterface $Proxy.wrap("mp::test::FooImplementation") {
27
27
passEmpty @12 (arg :FooEmpty) -> (result :FooEmpty) ;
28
28
passMessage @13 (arg :FooMessage) -> (result :FooMessage) ;
29
29
passMutable @14 (arg :FooMutable) -> (arg :FooMutable) ;
30
+ passEnum @15 (arg :Int32 ) -> (result :Int32 );
30
31
}
31
32
32
33
interface FooCallback $Proxy.wrap("mp::test::FooCallback" ) {
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ struct FooStruct
21
21
std::vector<bool > vbool;
22
22
};
23
23
24
+ enum class FooEnum : int { ONE = 1 , TWO = 2 , };
25
+
24
26
struct FooCustom
25
27
{
26
28
std::string v1;
@@ -72,6 +74,7 @@ class FooImplementation
72
74
FooEmpty passEmpty (FooEmpty foo) { return foo; }
73
75
FooMessage passMessage (FooMessage foo) { foo.message += " call" ; return foo; }
74
76
void passMutable (FooMutable& foo) { foo.message += " call" ; }
77
+ FooEnum passEnum (FooEnum foo) { return foo; }
75
78
std::shared_ptr<FooCallback> m_callback;
76
79
};
77
80
You can’t perform that action at this time.
0 commit comments