mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fixed adding emitted interfaces when no emitted code is added
This commit is contained in:
parent
7115cb8e82
commit
af4a402a53
2 changed files with 7 additions and 2 deletions
|
@ -2201,7 +2201,7 @@ void BfModule::HandleCEAttributes(CeEmitContext* ceEmitContext, BfTypeInstance*
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (!ceEmitContext->mEmitData.IsEmpty())
|
||||
else if (ceEmitContext->HasEmissions())
|
||||
{
|
||||
if (typeInstance->mCeTypeInfo == NULL)
|
||||
typeInstance->mCeTypeInfo = new BfCeTypeInfo();
|
||||
|
@ -2213,7 +2213,7 @@ void BfModule::HandleCEAttributes(CeEmitContext* ceEmitContext, BfTypeInstance*
|
|||
typeInstance->mCeTypeInfo->mNext->mTypeIFaceMap[typeId] = entry;
|
||||
}
|
||||
|
||||
if (!ceEmitContext->mEmitData.IsEmpty())
|
||||
if (ceEmitContext->HasEmissions())
|
||||
{
|
||||
String ctxStr = "comptime ApplyToType of ";
|
||||
ctxStr += TypeToString(attrType);
|
||||
|
|
|
@ -699,6 +699,11 @@ public:
|
|||
mMethodInstance = NULL;
|
||||
mFailed = false;
|
||||
}
|
||||
|
||||
bool HasEmissions()
|
||||
{
|
||||
return !mEmitData.IsEmpty() || !mInterfaces.IsEmpty();
|
||||
}
|
||||
};
|
||||
|
||||
class CeContext
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue