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:
parent
52f746aae9
commit
11bde5caf2
5 changed files with 65 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue