mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Added comptype
This commit is contained in:
parent
bb12a4ec20
commit
4890303508
27 changed files with 382 additions and 157 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue