mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed append ctors in classes with emissions
This commit is contained in:
parent
f8f95e9de3
commit
86a80f4d18
1 changed files with 34 additions and 30 deletions
|
@ -2056,6 +2056,9 @@ void BfDefBuilder::FinishTypeDef(bool wantsToString)
|
|||
{
|
||||
mCurTypeDef->mHasAppendCtor = true;
|
||||
|
||||
bool isHandled = !method->mParams.IsEmpty() && method->mParams[0]->mParamKind == BfParamKind_AppendIdx;
|
||||
if (!isHandled)
|
||||
{
|
||||
auto methodDef = new BfMethodDef();
|
||||
mCurTypeDef->mMethods.Insert(methodIdx + 1, methodDef);
|
||||
BF_ASSERT(mCurDeclaringTypeDef != NULL);
|
||||
|
@ -2091,6 +2094,7 @@ void BfDefBuilder::FinishTypeDef(bool wantsToString)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (method->mMethodType == BfMethodType_CtorClear)
|
||||
{
|
||||
ctorClear = method;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue