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:
parent
0c34e62df2
commit
da29789bd6
3 changed files with 12 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue