mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Added [MangleConst] support
This commit is contained in:
parent
3c131632b4
commit
fa0e712c2b
8 changed files with 78 additions and 22 deletions
|
@ -21,6 +21,11 @@ namespace Tests
|
|||
ret.mA = mA + other.mA + arg0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
const float& MethodA2(const float& val)
|
||||
{
|
||||
return val;
|
||||
}
|
||||
};
|
||||
|
||||
struct StructB
|
||||
|
@ -534,6 +539,8 @@ void UseIt()
|
|||
Interop::StructA sa;
|
||||
sa.MethodA0(0);
|
||||
sa.MethodA1(sa, 1);
|
||||
float f = 123;
|
||||
sa.MethodA2(f);
|
||||
Interop::StructB sb;
|
||||
sb.MethodB0(0);
|
||||
sb.MethodB1(sb, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue