mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-05 05:17:06 +00:00
Explicitly encode assumption that an overlapping section exists
This commit is contained in:
+3
-1
@@ -305,10 +305,12 @@ static void placeSection(Section §ion) {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
// Otherwise there is overlap with another section
|
// Otherwise there is overlap with another section
|
||||||
|
Section const *overlap = out_OverlappingSection(section);
|
||||||
|
assume(overlap != nullptr);
|
||||||
fatal(
|
fatal(
|
||||||
"Unable to place %s: section overlaps with \"%s\"",
|
"Unable to place %s: section overlaps with \"%s\"",
|
||||||
getSectionDescription(section).c_str(),
|
getSectionDescription(section).c_str(),
|
||||||
out_OverlappingSection(section)->name.c_str()
|
overlap->name.c_str()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user