1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fixed GetGenericTypeParamInstance with extensions

This commit is contained in:
Brian Fiete 2022-05-25 15:03:06 -07:00
parent 0c34e62df2
commit da29789bd6
3 changed files with 12 additions and 1 deletions

View file

@ -986,6 +986,15 @@ void BfTypeDef::ReportMemory(MemReporter* memReporter)
memReporter->AddVec(mDirectAllocNodes, false);
}
bool BfTypeDef::ContainsPartial(BfTypeDef* partialTypeDef)
{
if (partialTypeDef->mPartialIdx < 0)
return false;
if (partialTypeDef->mPartialIdx >= mPartials.mSize)
return false;
return mPartials[partialTypeDef->mPartialIdx] == partialTypeDef;
}
bool BfTypeDef::NameEquals(BfTypeDef* otherTypeDef)
{
if (mName != otherTypeDef->mName)