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

Added comptype

This commit is contained in:
Brian Fiete 2021-01-15 14:28:21 -08:00
parent bb12a4ec20
commit 4890303508
27 changed files with 382 additions and 157 deletions

View file

@ -44,6 +44,7 @@ BfContext::BfContext(BfCompiler* compiler) :
mMappedObjectRevision = 0;
mDeleting = false;
mLockModules = false;
mAllowLockYield = true;
mCurTypeState = NULL;
mCurConstraintState = NULL;
@ -255,9 +256,15 @@ void BfContext::EnsureHotMangledVirtualMethodNames()
}
}
void BfContext::CheckLockYield()
{
if (mAllowLockYield)
mSystem->CheckLockYield();
}
bool BfContext::IsCancellingAndYield()
{
mSystem->CheckLockYield();
CheckLockYield();
return mCompiler->mCanceling;
}