Skip to content

Commit

Permalink
#527 supplemental debug compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartenHilferink committed Oct 5, 2023
1 parent d463145 commit d0c9f65
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
26 changes: 14 additions & 12 deletions tic/dll/src/AbstrCalculator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,23 +725,25 @@ BestItemRef AbstrCalculator::FindPrimaryDataFailedItem() const
{
if (WasInFailed(ti))
goto foundError;
if (IsDataItem(ti))
{
SharedDataItemInterestPtr adi = AsDataItem(ti);
adi->PrepareDataUsage(DrlType::Certain);

DataReadLock lock(adi);
}
if (IsUnit(ti))
{
try {
AsUnit(ti)->GetCount();
try {
if (IsDataItem(ti))
{
SharedDataItemInterestPtr adi = AsDataItem(ti);
adi->PrepareDataUsage(DrlType::Certain);

DataReadLock lock(adi);
}
catch (...)
if (IsUnit(ti))
{
ti->CatchFail(FR_Data);
SharedUnitInterestPtr au = AsUnit(ti);
au->GetCount();
}
}
catch (...)
{
ti->CatchFail(FR_Data);
}
if (ti->WasFailed(FR_Data))
goto foundError;
}
Expand Down
2 changes: 1 addition & 1 deletion tic/dll/src/LispTreeType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ namespace token {

TIC_CALL bool isConst(TokenID t)
{
assert(true_.GetNr() + 19 == null_dp.GetNr());
assert(true_.GetNr(TokenID::TokenKey()) + 18 == null_dp.GetNr(TokenID::TokenKey()));
return t >= true_ && t <= null_dp;
}

Expand Down

0 comments on commit d0c9f65

Please sign in to comment.