mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Improved struct returns from mixins and block expressions
This commit is contained in:
parent
5268e103e9
commit
e3ca70c153
3 changed files with 36 additions and 0 deletions
|
@ -798,6 +798,21 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
void MakeTemporary(bool restricted = false)
|
||||
{
|
||||
switch (mKind)
|
||||
{
|
||||
case BfTypedValueKind_Addr:
|
||||
mKind = restricted ? BfTypedValueKind_RestrictedTempAddr : BfTypedValueKind_TempAddr;
|
||||
break;
|
||||
case BfTypedValueKind_ReadOnlyAddr:
|
||||
mKind = BfTypedValueKind_ReadOnlyTempAddr;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
bool CanModify() const;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue