1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fixed payload enum switch case comparison

This commit is contained in:
Brian Fiete 2023-07-24 10:32:31 -07:00
parent 52f746aae9
commit 11bde5caf2
5 changed files with 65 additions and 1 deletions

View file

@ -297,6 +297,13 @@ namespace Tests
{
float mX;
};
struct StructX
{
int mA;
int mB;
char* mC;
};
};
int Interop::StructA::sVal = 1234;
@ -492,6 +499,15 @@ extern "C" Interop::StructI Func2I(Interop::StructI arg0, int arg1)
return ret;
}
extern "C" Interop::StructX Func2X(Interop::StructX arg0, int arg1)
{
Interop::StructX ret;
ret.mA = arg0.mA + arg1;
ret.mB = arg0.mB;
ret.mC = arg0.mC + 1;
return ret;
}
//////////////////////////////////////////////////////////////////////////
extern "C" int Func3A(Interop::StructA* ptr)