- Only add debug in unittest mode
This commit is contained in:
Tristan B. Velloza Kildaire 2024-05-02 14:50:11 +02:00
parent c886ba184b
commit 19a7ce6f7e
1 changed files with 7 additions and 3 deletions

View File

@ -723,9 +723,13 @@ if(isSector!(SectorType)())
// could cheat if sector is never replaced, hence why it works
foreach(SectorType sector; this.sectors)
{
writeln(sector);
writeln("idx: ", idx);
writeln("thunk: ", thunk);
version(unittest)
{
writeln(sector);
writeln("idx: ", idx);
writeln("thunk: ", thunk);
}
if(idx-thunk < sector.opDollar())
{
sector[idx-thunk] = value;