1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed append alloc issues, static init block fix

This commit is contained in:
Brian Fiete 2020-12-26 11:41:31 -08:00
parent 3b1f1634ac
commit 4a00830adf
3 changed files with 51 additions and 35 deletions

View file

@ -792,7 +792,10 @@ void BfDefBuilder::ParseAttributes(BfAttributeDirective* attributes, BfMethodDef
else if (typeRefName == "Inline")
methodDef->mAlwaysInline = true;
else if (typeRefName == "AllowAppend")
{
methodDef->mHasAppend = true;
methodDef->mIsNoSplat = true;
}
else if (typeRefName == "Checked")
methodDef->mCheckedKind = BfCheckedKind_Checked;
else if (typeRefName == "Unchecked")
@ -1866,6 +1869,7 @@ void BfDefBuilder::FinishTypeDef(bool wantsToString)
methodDef->mProtection = BfProtection_Public;
methodDef->mMethodType = BfMethodType_CtorCalcAppend;
methodDef->mIsMutating = method->mIsMutating;
methodDef->mIsNoSplat = true;
methodDef->mMethodDeclaration = method->mMethodDeclaration;
methodDef->mReturnTypeRef = mSystem->mDirectIntTypeRef;